NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
- Subject: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
- From: Gerben Wierda <email@hidden>
- Date: Fri, 16 Aug 2002 16:52:24 +0200
I have a subclass of NSDocument and NSWindowController. Now, I seem to
have messed things up. Because windowControllerDidLoadNib is never
called. Who is responsible for calling this method? Am I myself (in
makeWindowControllers)?
And more: at what moment can I trust that outlets in my
NSWindowController subclass are connected (have a non-nil value)?
Thanks,
G
From my NSDocument subclass:
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
{
[super windowControllerDidLoadNib:aController];
// Add any code here that need to be executed once the
windowController has loaded the document's window.
// snip (this method is never called)
}
- (void)makeWindowControllers {
_cachedWindowController = [[II2WindowController allocWithZone:[self
zone]] initWithWindowNibName:@"II2Package"];
[self addWindowController:_cachedWindowController];
}
_______________________________________________
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.