• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting NSZombieEnabled for a plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Setting NSZombieEnabled for a plugin (From: Ken Tozier <email@hidden>)
 >Re: Setting NSZombieEnabled for a plugin (From: j o a r <email@hidden>)

  • Prev by Date: Re: Setting NSZombieEnabled for a plugin
  • Next by Date: Re: Xcode recompiles everything.
  • Previous by thread: Re: Setting NSZombieEnabled for a plugin
  • Next by thread: Loading files from Resources
  • Index(es):
    • Date
    • Thread