makeWindowControllers
makeWindowControllers
- Subject: makeWindowControllers
- From: Brent Gulanowski <email@hidden>
- Date: Wed, 2 Jul 2003 15:36:30 -0400
hi everybody!
What I am forgetting?
-(void)makeWindowControllers {
[self buildQuadtree];
// create main window controller
mainWindowController = [[SCMainWindowController alloc]
initWithWindowNibName:@"MainWindow"];
[self addWindowController:mainWindowController];
[mainWindowController window];
// [super makeWindowControllers];
}
-(void)windowControllerDidLoadNib:(NSWindowController
*)windowController {
NSLog(@"%@", NSStringFromSelector(_cmd));
if( YES == [windowController
isKindOfClass:NSClassFromString(@"SCMainWindowController")] )
[self createTextures];
}
--
Docs don't say that overrides of -makeWindowControllers are supposed to
call super's version, but if I don't, -windowControllerDidLoadNib does
not get called. How non-intuitive is that? -windowControllerDidLoadNib
gets called by the window controller, not the document! What's going on
in NSDocument's default implementation of makeWindowControllers that
I'm forgetting in my version? There is nothing apparently wrong with
calling super's implementation, but in testing, I notice that it's
trying to call -windowNibName. The docs make it sound like my version
is replacing NSDocument's version, not augmenting it.
Thanks,
Brent Gulanowski email@hidden
_______________________________________________
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.