Re: Setting NSZombieEnabled for a plugin
Re: Setting NSZombieEnabled for a plugin
- Subject: Re: Setting NSZombieEnabled for a plugin
- From: Ken Tozier <email@hidden>
- Date: Sat, 21 Apr 2007 19:06:17 -0400
Thanks Joar
I Googled a bit and stumbled across this link http://
www.omnigroup.com/mailman/archive/macosx-dev/2005-January/055309.html
which suggested an alternate method
#import <Foundation/NSDebug.h>
Along with the following in the plugin initialize method
NSZombieEnabled = YES;
Works great and has the added benefit that I can turn it on and off
with a #define in the source
Ken
On Apr 21, 2007, at 5:58 PM, j o a r wrote:
On 21 apr 2007, at 23.37, Ken Tozier wrote:
Someone on the cocoa-dev list suggested that a crash I'm having
might be trackable using NSZombieEnabled but my current project is
a plugin and the "Executables" item in Xcode is empty. Is it
possible to set NSZombieEnabled for plugins? If so, how?
You need to set the environment variable for the app that is going
to load your plugin. If you have a project that builds a plugin,
it's often very convenient to set up an external executable
pointing to the application loading your plugin. If you have such
an executable, you can easily set the environment variable for it.
Otherwise, you can just launch it from a shell and set the
environment variable there.
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden