Re: Document object retain and release
Re: Document object retain and release
- Subject: Re: Document object retain and release
- From: "David P. Henderson" <email@hidden>
- Date: Tue, 26 Jun 2001 14:19:55 -0400
Have you looked at the Vermont Recipes?
http://www.stepwise.com/Articles/VermontRecipes/
But to set you on the path. You don't want NSDocumentController involved
here; you want your NSDocument subclass dealing with this. Implement
-makeWindowControllers instead of -windowNibname in your doc subclass.
- (void)makeWindowControllers
{
MyWindowController *windowController = [[MyWindowController alloc]
init]; // create a window controller
[self addWindowController:windowController]; // add to the
windowControllers array
[windowController release]; // now we're done with it.
}
Dave
--
Chaos Assembly Werks
"The proper office of a friend is to side with you when you are in the
wrong. Nearly anybody will side with you when you are in the right."
- Mark Twain