Re: Help with Cocoa document app & controllers
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