Re: Enabling NSZombieEnabled programatically
Re: Enabling NSZombieEnabled programatically
- Subject: Re: Enabling NSZombieEnabled programatically
- From: Graham Cox <email@hidden>
- Date: Sun, 10 Jan 2010 14:18:08 +1100
On 10/01/2010, at 1:12 PM, Dave Keck wrote:
> > OK, seems to be that way. So how do I do that from within my app? I tried setenv("NSZombieEnabled", "YES", 1 ) but that didn't seem to work.
>
> Proof of concept, needs to be cleaned up. Appears to work as expected, though:
Thanks Dave, that's just what I need. I changed it slightly to use [[[NSBundle mainBundle] executablePath] UTF8String] because the code is actually inside a sub-framework and _NSGetExecutablePath appears not to be available. Otherwise no problems!
--Graham
_______________________________________________
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