Re: Document object retain and release
Re: Document object retain and release
- Subject: Re: Document object retain and release
- From: Michael Dagate <email@hidden>
- Date: Tue, 26 Jun 2001 19:50:03 -0500
Problem solved. As it turns out, I needed to connect the window outlet
in the nib file. Everything is happy now.
Thanks for your help,
Michael
On Tuesday, June 26, 2001, at 01:19 PM, David P. Henderson wrote:
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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev