Re: Where does an NSDocument get it's initial NSWindowController from?
Re: Where does an NSDocument get it's initial NSWindowController from?
- Subject: Re: Where does an NSDocument get it's initial NSWindowController from?
- From: Cameron Hayne <email@hidden>
- Date: Tue, 24 May 2005 21:18:15 -0400
On 24-May-05, at 7:42 PM, Theodore H. Smith wrote:
My main nib file for the document is MyDocument.nib. I have this
code defined:
- (NSString *)windowNibName {
return @"MyDocument";
}
According to the docs, this should be working already. But it does
not. This is strange.
If I recall correctly, what you mean by not working is that the array
returned from NSDocument method 'windowControllers' is empty. Is
suspect this is because you are invoking it in the wrong place -
before the NIB has been loaded. You probably want to move most of
your code into 'windowControllerDidLoadNib:'
--
Cameron Hayne
email@hidden
_______________________________________________
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