• 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: awakeFromNib not called immediatly after initWithWindowNibName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awakeFromNib not called immediatly after initWithWindowNibName


  • Subject: Re: awakeFromNib not called immediatly after initWithWindowNibName
  • From: Eric Morand <email@hidden>
  • Date: Fri, 26 May 2006 14:17:42 +0200

Thanks j o a r,

I've called -window and it works perfectly.



Eric.

Le 18 mai 06 à 15:28, j o a r a écrit :


On 18 maj 2006, at 15.11, Eric Morand wrote:

...the doSomething method is executed BEFORE the awakeFromNib of the window controller ! Is it normal ? Isn't awakeFromNib supposed to be called just after the nib is loaded ?

Yes, this is normal, as the nib file is loaded "lazily", ie. when it's first needed, and not when the window controller is initialized.


Why not simply call "-doSomething" from "-awakeFromNib", or possibly from "-windowDidLoad"? Another option is of course to call "-window", which is documented to trigger nib loading.

j o a r



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >awakeFromNib not called immediatly after initWithWindowNibName (From: Eric Morand <email@hidden>)
 >Re: awakeFromNib not called immediatly after initWithWindowNibName (From: j o a r <email@hidden>)

  • Prev by Date: Re: Customizing the preview in the file browser dialog
  • Next by Date: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Previous by thread: Re: awakeFromNib not called immediatly after initWithWindowNibName
  • Next by thread: URI de/encoding
  • Index(es):
    • Date
    • Thread