On Wed, Aug 19, 2009 at 8:48 AM, Bill Bumgarner<b...@mac.com> wrote:
> Turn on NSZombie mode.

More clarification, since from your confusion it sounds like you might
not know what this means:

"NSZombie mode" means that whenever an object's retain count drops to
zero, instead of freeing the memory held by that object, the system
will instead swap in an NSZombie object in its place.  The effect of
this is that instead of getting a crash when you over-release or send
messages to dead objects, you get a nice little warning in the
console.  If you run your app in Instruments with the ObjectAlloc
tool, you can go backwards in your app's allocation history to find
out just what object it is that's getting over-released.  Corbin Dunn
has more information on doing this in Leopard:
http://www.corbinstreehouse.com/blog/index.php/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to