Re: WindowController never gets dealloc'ed
Re: WindowController never gets dealloc'ed
- Subject: Re: WindowController never gets dealloc'ed
- From: Jeremy Dronfield <email@hidden>
- Date: Mon, 19 Aug 2002 11:07:44 +0100
On Sunday, August 18, 2002, at 11:41 pm, Michael Mulligan wrote:
The WindowController on my app never seems to be released and this
results
in a lot of objects never being released. Are there any simple things
that I
might be overlooking?
First make sure you've implemented a proper -dealloc method, wherein you
release any retained objects. Then do:
-(void)windowWillClose:(NSNotification *)aNotification
{
[self autorelease];
}
-Jeremy
=======================================
email@hidden // email@hidden
The Alchemy Pages:
- fractious fiction at
http://freespace.virgin.net/jeremy.dronfield
_______________________________________________
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.