Where does an NSDocument get it's initial NSWindowController from?
Where does an NSDocument get it's initial NSWindowController from?
- Subject: Where does an NSDocument get it's initial NSWindowController from?
- From: "Theodore H. Smith" <email@hidden>
- Date: Tue, 24 May 2005 20:01:53 +0100
Where does an NSDocument get it's initial NSWindow from?
This code:
- (NSWindow*) window { // method of NSDocument subclass
NSArray* a = [self windowControllers];
NSWindowController* wc = [a objectAtIndex:0];
NSWindow* w = [wc window];
return w;
}
Does not work, because the NSArray contains no elements. So, where does
the NSWindowController supposed to come from, then?
Does NSDocument have an NSWindowController automatically when it is
loaded from the nib? Or do I have to add one via code, or what?
--
elfdata.com/plugin/ Industrial strength string processing, made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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