• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: release check
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: release check
      • From: "I. Savant" <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>)

  • Prev by Date: Re: release check
  • Next by Date: Re: release check
  • Previous by thread: Re: release check
  • Next by thread: Re: release check
  • Index(es):
    • Date
    • Thread