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

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
  • Follow-Ups:
    • Re: awakeFromNib not called immediatly after initWithWindowNibName
      • From: j o a r <email@hidden>
  • Prev by Date: Re: taking control of the screen and "locking" onto one window
  • Next by Date: Re: awakeFromNib not called immediatly after initWithWindowNibName
  • Previous by thread: Re: Opening arbitrary address books with AddressBook.framework
  • Next by thread: Re: awakeFromNib not called immediatly after initWithWindowNibName
  • Index(es):
    • Date
    • Thread