Difficulties with NSWindowController
Difficulties with NSWindowController
- Subject: Difficulties with NSWindowController
- From: Rob Rix <email@hidden>
- Date: Mon, 18 Jun 2001 21:46:02 -0400
Hi, all.
I'm implementing a non-document based GUI app. It's got a New command to
allow you to open multiple windows. I have the New command connected to a
custom object (MetaAppController) with the action newWindow:.
I have the window in a separate nib file to (I thought) facilitate having
it open multiple times.
In newWindow:, I alloc an instance of NSWindowController, and use
initWithWindowNibName: to have it load the appropriate nib file. Only
difficulty is that although it appears to load the nib fine, it doesn't
get the window properly. That is, [theController window] returns nil
instead of the window from the nib file that theController loaded.
So, how do I remedy this?
Thanks for any help, sorry if I've been unclear at all,
-- Rob
Murphy strikes again!