• 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: Help with Cocoa document app & controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with Cocoa document app & controllers


  • Subject: Re: Help with Cocoa document app & controllers
  • From: Rick Mann <email@hidden>
  • Date: Wed, 26 Dec 2007 17:41:18 -0800


On Dec 26, 2007, at 5:24 PM, Jeff Johnson wrote:

My guess is that the nib has not yet been loaded when you attempt to use the IBOutlet. You can determine this for sure by calling - [NSWindowController isWindowLoaded], and you can load the nib by calling -[NSWindowController window], for example.

You're right. It appears that calling NSWindowController's initWithNibName does not cause the nib to be loaded yet.


Which means I can't do any real initialization in my controller's - init method. So, where am I supposed to do it? I know it's getting loaded eventually; the window shows up.


TIA, -- Rick

_______________________________________________

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


  • Follow-Ups:
    • Re: Help with Cocoa document app & controllers
      • From: mmalc crawford <email@hidden>
References: 
 >Help with Cocoa document app & controllers (From: Rick Mann <email@hidden>)
 >Re: Help with Cocoa document app & controllers (From: Jeff Johnson <email@hidden>)

  • Prev by Date: Re: HeaderDoc style for getter/setter pairs
  • Next by Date: Re: Help with Cocoa document app & controllers
  • Previous by thread: Re: Help with Cocoa document app & controllers
  • Next by thread: Re: Help with Cocoa document app & controllers
  • Index(es):
    • Date
    • Thread