Re: Enabling NSZombieEnabled programatically
Re: Enabling NSZombieEnabled programatically
- Subject: Re: Enabling NSZombieEnabled programatically
- From: "Sean McBride" <email@hidden>
- Date: Sat, 9 Jan 2010 18:22:47 -0500
Graham Cox (email@hidden) on 2010-01-10 18:02 said:
>Is there a straightforward way to set the NSZombieEnabled environment
>variable programatically from within my app, and only for my app? It's
>OK if this would need a relaunch to take effect.
>
>I want to be able to add a UI control to enable this so that I can work
>with end-users who report over-release bugs, but who are not able to use
>Terminal.
>
>I thought writing a user default 'NSZombieEnabled' with value YES might
>be enough, as it is with some memory debugging variables, but it isn't.
I've never tried, but NSDebug.h seems to say that there is an
NSZombieEnabled global var that you can set.
Sean
--
"How much harm does a company have to do before we question its right to
exist?" — Paul Hawken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden