awakeFromNib not called immediatly after initWithWindowNibName
awakeFromNib not called immediatly after initWithWindowNibName
- Subject: awakeFromNib not called immediatly after initWithWindowNibName
- From: Eric Morand <email@hidden>
- Date: Thu, 18 May 2006 15:11:32 +0200
Hi list,
I'm currently facing a strange problem that I don't understand.
I have a subclass of NSWindowController that is initialized this way :
MyWindowController * aController = [[MyWindowController alloc]
initWithWindowNibName:@"MyWindow"];
Now, if I call a method immediatly after the initialization, like this :
[aController doSomething];
...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 ?
That's pretty problematic since I need the nib objects to be
initialized (and the connections being done) to be sure doSomething
works correctly.
Thanks for your help,
Eric.
_______________________________________________
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