I found this bit of code online to check if my NSZombiesEnabled is on or off
if( getenv("NSZombieEnabled") || getenv("NSAutoreleaseFreedObjectCheckEnabled") ) {
NSLog(@"NSZombieEnabled/NSAutoreleaseFreedObjectCheckEnabled enabled!");
}
The strange thing is that if in my env. variables in XCode4 I set NSZombiesEnabled = NO then the code still shows it to be set. Only if I completely remove the setting does it not show.
I believe NSZombiesEnabled creates one gaping memory leak so I want to be sure that just setting the env. variable to NO also disables it.
Cheers Nick