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: Dale Gillard <email@hidden>
- Date: Sat, 9 Apr 2005 23:22:33 +1000
On 9 Apr 2005, at 11:12 PM, Jonathon Mah wrote:
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).
Thanks. But I'm sending the msg well after the nib has been loaded
(other windows in the nib file have been used by this time), but I'm
not sending the msg from awakeFromNib itself.
Dale
_______________________________________________
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