Re: makeWindowControllers question
Re: makeWindowControllers question
- Subject: Re: makeWindowControllers question
- From: Bill Greene <email@hidden>
- Date: Tue, 2 Dec 2003 20:13:47 -0500
On Dec 2, 2003, at 7:58 PM, Bill Greene wrote:
On Dec 2, 2003, at 6:46 PM, mmalcolm crawford wrote:
On Dec 2, 2003, at 3:13 PM, Bill Greene wrote:
Less likely: You've either not over-ridden -windowNibName, or it
returns the wrong string.
I'm overriding makeWindowControllers instead of windowNibName to
allow my document to have multiple windows.
Sorry for not being explicit, the comments apply to your
NSWindowController subclass.
You're right: I had not overridden -[NSWindowController
windowNibName]. I just now tried doing so, but found that it wasn't
called.
Hmm, mea culpa. I got that horribly wrong (my apologies for the
confusion).
How are you creating the new controllers? Looking at an example I
did a long while ago, I used -initWithWindowNibName:
[super initWithWindowNibName:@"MyNibName"];
More accurately, I'm creating my new controller in
-makeWindowControllers thus:
MyWindowController *controller = [[MyWindowController alloc]
initWithDocument:self];
and -[MyWindowController initWithDocument:] is the one that does
[super initWithWindowNibName:@"MyNibName"];
I'm beginning to suspect that my problem is that the Nib file is not
loading properly, although -initWithWindowNibName: does not return
nil. windowControllerWillLoadNib: and windowControllerDidLoadNib: are
not called. Interface Builder says of my NSWindow that "One of the
children has a bad/missing connection", although I haven't been able
to determine what the problem is.
-- Bill
-- Bill
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.