• 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
awakeFromNib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: awakeFromNib
      • From: j o a r <email@hidden>
    • Re: awakeFromNib
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: NSOutlineView threading problem
  • Next by Date: Re: launching finder with optionschi
  • Previous by thread: "Require password to wake this computer from sleep or screen saver"
  • Next by thread: Re: awakeFromNib
  • Index(es):
    • Date
    • Thread