Re: loading NSWindowController nib from bundle
Re: loading NSWindowController nib from bundle
- Subject: Re: loading NSWindowController nib from bundle
- From: Quincey Morris <email@hidden>
- Date: Tue, 28 Oct 2014 01:40:35 +0000
On Oct 27, 2014, at 18:16 , Torsten Curdt <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden