Re: NSWindowController confusion
Re: NSWindowController confusion
- Subject: Re: NSWindowController confusion
- From: Sherm Pendley <email@hidden>
- Date: Sun, 14 May 2006 00:51:34 -0400
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.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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