سؤال

As I understand there are 2 ways of checking for Zombies in Xcode 4, first is the traditional way of setting NSZombieEnabled in the Environment Variables, and setting it to "YES", and the other way is Enabling Zombie Objects in the Diagnostics section of the a scheme.

Is there any difference between these 2 ways?

Thanks Reza

هل كانت مفيدة؟

المحلول

Nope no difference they are pretty much the same, checking the checkbox Enabling Zombie Objects will make NSZombieEnabled = YES

نصائح أخرى

The other way is via Instruments. Cmd-I for Profile action, choose the Zombies instrument. No need to manage the zombies switch manually - the Profile action (Cmd-I) handles this for you.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top