Re: Why would IBOutlet NSPanel *aWindow be nil?
Re: Why would IBOutlet NSPanel *aWindow be nil?
- Subject: Re: Why would IBOutlet NSPanel *aWindow be nil?
- From: Jonathon Mah <email@hidden>
- Date: Sat, 9 Apr 2005 22:42:54 +0930
On 9 Apr 2005, at 22:22, Dale Gillard wrote:
But... when I run the project the new panel does not appear when I
send it a makeKeyAndOrderFront: message. I've run the app in the
debugger and the outlet is nil. Is there something I'm doing wrong?
This may be a silly question, but when are you sending that message?
You have to send it in -awakeFromNib (which is called after the entire
nib has loaded, and all outlets, etc. have been connected) as opposed
to in -init (which is called while the nib is being set up).
Jonathon Mah
email@hidden
_______________________________________________
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