Re: release check
Re: release check
- Subject: Re: release check
- From: John Stiles <email@hidden>
- Date: Wed, 14 Mar 2007 16:28:51 -0700
On Mar 14, 2007, at 3:58 PM, I. Savant wrote:
On Mar 14, 2007, at 6:24 PM, John Stiles wrote:
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.
That's what the tools in the /Developer/Applications/Performance
Tools/ folder are for. There's no need to muddy the waters by
adding code to an application to self-diagnose. If your purpose is
to find leaks, use the proper tools.
Well, on the (non-ObjC) code I work on here, every time the app
quits, it asserts on quit if you forgot to release something. This is
a powerful motivator to never check in broken code. With the
performance tools, you have to remember to explicitly run them and
check for leaks.
This is like the difference between a compile-time warning and having
to run lint to see if your code has potential problems. Both are
serviceable, but one is much more immediate and more likely to
receive prompt attention.
_______________________________________________
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