• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: loading NSWindowController nib from bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >loading NSWindowController nib from bundle (From: Torsten Curdt <email@hidden>)
 >Re: loading NSWindowController nib from bundle (From: Quincey Morris <email@hidden>)
 >Re: loading NSWindowController nib from bundle (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: loading NSWindowController nib from bundle
  • Next by Date: Re: Editing an NSOutlineView item
  • Previous by thread: Re: loading NSWindowController nib from bundle
  • Next by thread: Mac containment segues, and prepareForSegue
  • Index(es):
    • Date
    • Thread