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 17:47:23 -0500
Hi Dave,
Thanks for the quick response. I went back and looked at Vermont
Recipes. (I've done all three and, in fact, they were a BIG help). My
makeWindowControllers is virtually identical to yours - the only
difference was that I used allocWithZone just like VR. (I tried it your
way also, but got the same result.)
Just for grins, I added more debug output to my VR project and it works
correctly. I must have some very obscure bug somewhere. Maybe I need to
connect a delegate outlet somewhere?
I guess it's back to the drawing board... :)
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