Re: awakeFromNib not called immediatly after initWithWindowNibName
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