awakeFromNib
awakeFromNib
- Subject: awakeFromNib
- From: David Harper <email@hidden>
- Date: Mon, 16 Jun 2008 11:07:23 -0400 (EDT)
Hello,
I am setting up a preferences window, and I would like awakeFromNib: to be invoked earlier than it does. Currently, it only gets invoked when the preferences window is shown / opened.
I expected that there might be an option to specify this in the .nib file itself, and I got my hopes up with the "deferred" check box which is enabled by default - the tooltip said "Sets whether the window server creates a window device for the window immediately. When YES, the window server defers creating the window device until the window is moved onscreen."
Right now the reason I want to do this is that the contents of the controls in the preferences windows can themselves be used to save the preferences. For example I'd stick [backgroundColor color] in a dictionary (where backgroundColor is a color well) instead of managing my own NSColor * and responding to delegate methods.
Thanks in advance,
- Dave H.
_______________________________________________
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