Newbie Q: equipping an NSDocument subclass with a window controller (2)
Newbie Q: equipping an NSDocument subclass with a window controller (2)
- Subject: Newbie Q: equipping an NSDocument subclass with a window controller (2)
- From: email@hidden
- Date: Wed, 12 Oct 2005 17:17:47 +0200 (CEST)
- Importance: Normal
Hello all,
and thank you for your help Sherm, but I'm still stuck.
Let me explain my problem in more detail :
I've got a "global controller" class (called AppController) that deals with
the various controllers inside my project. Among those
controllers, there is a NSDocument subclass (called
BlueDocument). AppController has a method
showBlueWindow like this :
-(void) showBlueWindow {
if (!blueWindow) {
BlueWindow* blueWindow=[[BlueWindow alloc] init];
}
[blueWindow showWindows];
}
and since I've implemented -makeControllerWindows for this
class BlueWindows (like this, following Sherm's guidelines)
- (void) makeWindowControllers
{
NSWindowController *c = [[[NSWindowController alloc]
initWithWindowNibName: @"BlueWindow" owner:self] autorelease];
[self addWindowController: c];
}
I expected the BlueWindow.nib file to be loaded automatically when the
blueWindow object is first created. But I was wrong, and indeed the debugger
screens a message like this :
warning: Couldn't raise load state for requested shlib:
"AppController.ob" for breakpoint 2.
so what must I do ? insert a windowControllerWillLoadNib instruction
somewhere ?
Ewan
_______________________________________________
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