Re: release check
Re: release check
- Subject: Re: release check
- From: Uli Kusterer <email@hidden>
- Date: Thu, 15 Mar 2007 00:53:28 +0100
Am 14.03.2007 um 23:24 schrieb John Stiles:
The original question has merit, though. It's nice to have warnings
pop up at app quit if you accidentally forget a -release somewhere.
We all make mistakes.
I doubt this is possible in Cocoa as it is currently implemented.
For example, the Cocoa framework doesn't release several singletons
(the most prominent of which are the application delegate and the
other objects in the MainMenu.nib). So, pretty much every app will
have a good number of "leaks" on exit.
Of course those are irrelevant in the end, because the
application's memory will be torn down anyway, but it's a bunch of
work to detect what objects are intentional leaks (e.g. not just the
app delegate, but also all objects "hanging off of it").
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden