• 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: j o a r <email@hidden>
  • Date: Thu, 18 May 2006 15:28:56 +0200


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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: awakeFromNib not called immediatly after initWithWindowNibName
      • From: Eric Morand <email@hidden>
References: 
 >awakeFromNib not called immediatly after initWithWindowNibName (From: Eric Morand <email@hidden>)

  • Prev by Date: awakeFromNib not called immediatly after initWithWindowNibName
  • Next by Date: Re: Variable scope/lifetime of class methods (concerns Threads)
  • Previous by thread: awakeFromNib not called immediatly after initWithWindowNibName
  • Next by thread: Re: awakeFromNib not called immediatly after initWithWindowNibName
  • Index(es):
    • Date
    • Thread