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