D/Objective-C 64bit

Christian Schneider via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Nov 18 13:07:06 PST 2014


> Can't you just call "super" in the beginning of the method and 
> then call return "this" at the end. Something like this:
>
> override KeyboardView initWithFrame(NSRect frame) 
> [initWithFrame:] {
>     super.initWithFrame(frame);
>     // my stuff
>     return this;
> }

Ups, sorry, my bad! I was trying this and had an exception, but 
not from the constructor! Of course this works just fine! Excuse 
me for the noise, I should remove my post (if I only could ;).



More information about the Digitalmars-d-announce mailing list