• 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: How to open two nibs at app launch ? Beginners question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to open two nibs at app launch ? Beginners question


  • Subject: Re: How to open two nibs at app launch ? Beginners question
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 13 Apr 2009 09:53:55 -0700

On Apr 13, 2009, at 08:29, Filip van der Meeren wrote:

Instead of overriding the init method, you could override windowNibName

- (NSString*)windowNibName { return @"MyNibName"; }

and then just call your WindowController alloc init methods...

This doesn't look correct. This pattern is used inside a NSDocument subclass, but the OP's application isn't NSDocument-based.


NSWindowController also has a windowNibName method (which I'd never noticed before), but it looks like that's not for *supplying* the name but for *returning* the name passed to the initializer.

I'm not sure which of the two you're referring to, but neither seems to solve the problem.


_______________________________________________

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: 
 >How to open two nibs at app launch ? Beginners question (From: Mario Kušnjer <email@hidden>)
 >Re: How to open two nibs at app launch ? Beginners question (From: Quincey Morris <email@hidden>)
 >Re: How to open two nibs at app launch ? Beginners question (From: Mario Kušnjer <email@hidden>)
 >Re: How to open two nibs at app launch ? Beginners question (From: Quincey Morris <email@hidden>)
 >Re: How to open two nibs at app launch ? Beginners question (From: Mario Kušnjer <email@hidden>)
 >Re: How to open two nibs at app launch ? Beginners question (From: Michael Ash <email@hidden>)
 >Re: How to open two nibs at app launch ? Beginners question (From: Filip van der Meeren <email@hidden>)

  • Prev by Date: Re: NSDocument reference held by NSSavePanel?
  • Next by Date: Re: NSDocument reference held by NSSavePanel?
  • Previous by thread: Re: How to open two nibs at app launch ? Beginners question
  • Next by thread: CGContextClipToMask
  • Index(es):
    • Date
    • Thread