Re: multiple window per document problems
Re: multiple window per document problems
- Subject: Re: multiple window per document problems
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 6 Jun 2004 13:44:07 -0700
On Jun 6, 2004, at 12:35 PM, m wrote:
- (void)makeWindowControllers
{
NSWindowController* aWindowController;
aWindowController = [[NSWindowController
alloc]initWithWindowNibName:[self windowNibName] owner:self];
[self addWindowController:aWindowController];
[aWindowController setShouldCloseDocument:YES];
aWindowController = [[NSWindowController
alloc]initWithWindowNibName:@"Subwindow" owner:self];
[self addWindowController:aWindowController];
[aWindowController setShouldCloseDocument:NO];
aWindowController = [[NSWindowController
alloc]initWithWindowNibName:@"Subwindow" owner:self];
[self addWindowController:aWindowController];
[aWindowController setShouldCloseDocument:NO];
}
What about memory management...?
aWindowController = [[NSWindowController
alloc]initWithWindowNibName:@"Subwindow" owner:self];
[self addWindowController:aWindowController];
[aWindowController release]; // ****
[aWindowController setShouldCloseDocument:NO];
mmalc
_______________________________________________
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.