Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: release check



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >release check (From: "Ahmet Taha Sakar" <email@hidden>)
 >Re: release check (From: "I. Savant" <email@hidden>)
 >Re: release check (From: "I. Savant" <email@hidden>)
 >Re: release check (From: John Stiles <email@hidden>)
 >Re: release check (From: "I. Savant" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.