On Oct 27, 2014, at 18:16 , Torsten Curdt <tcu...@vafer.org> wrote:
> 
> I know - it smells horrible.

It doesn’t just smell, it’s actually wrong.

> My next thought was to just add
> 
>     - (id) initWithMyWindowNibPath:(NSString *)nibPath
>     {
>         return [super initWithWindowNibPath:nibPath owner:self];
>     }
> 
> to my controller.
> 
> Too pragmatic?

This is exactly the same as before. The value of ‘self’ being passed to the 
superclass initializer *is* the value of [MyWC alloc]. It’s just as wrong.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to