NSDocument window not showing
NSDocument window not showing
- Subject: NSDocument window not showing
- From: Agent M <email@hidden>
- Date: Sat, 13 Nov 2004 17:54:56 -0500
A have an NSDocument application which refuses to show its document
window.
I subclassed NSWindowController and I verified that
-(void)makeWindowControllers
is being called. I also verified that the added controller is non-nil.
Here's the method from my window controller subclass:
-(id)init
{
if(self=[super initWithWindowNibName:@"Project"])
{
NSLog(@"window: %@",[self window]);
}
return self;
}
This outputs "window: (null)" and no window appears. I checked that
this does not happen in Sketch because I found it odd that I could
create the window controller with no window. Why isn't the window being
loaded? Why don't I see any error? The nib is called "Project" and
contains a window. I made all the window's settings (in the inspector)
identical to those of Sketch's document window. Even stranger,
-(void)windowDidLoad is called in the controller- wouldn't that be a
bug?
Thanks for any insight.
_______________________________________________
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