Re: NSWindowController confusion
Re: NSWindowController confusion
- Subject: Re: NSWindowController confusion
- From: Ken Tozier <email@hidden>
- Date: Sun, 14 May 2006 01:03:09 -0400
On May 14, 2006, at 12:51 AM, Sherm Pendley wrote:
On May 14, 2006, at 12:11 AM, Ken Tozier wrote:
I'm loading a panel from a nib file using NSWindowController's
initWithWindowNibName. If I call the method "showWindow", the
panel appears on screen as expected but, even after this success,
calling the controller's "window" method returns nil. How do I
access the window the controller just opened if not through the
"window" method?
In your nib, make sure the "File's Owner" custom class is
NSWindowController. Once the class is right, the owner should have
an outlet named "window" that you need to connect to your panel.
Perfect! Thanks Sherm!
Ken
_______________________________________________
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