WindowController never released
WindowController never released
- Subject: WindowController never released
- From: Gerben Wierda <email@hidden>
- Date: Thu, 15 Aug 2002 00:45:26 +0200
I have subclassed NSWindowController and NSDocument. In NSDocument I
have added the makeWindowControllers entry following the instructions in
the docs:
- (void)makeWindowControllers {
II2WindowController *myController = [[II2WindowController
allocWithZone:[self zone]] initWithWindowNibName:@"II2Package"];
[self addWindowController:myController];
}
But both these retain myController. As a result, when I close the
window, my windowcontroller is never dealloced (and thus some object
housekeeping never took place). So, this seems wrong as it does not
follow the 'closing behaviour' as per the docs.
Shall I just release myDocument in makeWindowControllers?
G
_______________________________________________
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.