• 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
can't get NSZombie to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't get NSZombie to work


  • Subject: can't get NSZombie to work
  • From: Ben Dougall <email@hidden>
  • Date: Wed, 28 Apr 2004 16:42:37 +0100

hiyer,

i don't understand how to debug using NSZombie.

i've added these breakpoints in (in project builder this is):

-[_NSZombie release]
-[_NSZombie methodSignatureForSelector:]

and i've put this at the top of my main.m file:

#import <Foundation/NSDebug.h>
NSZombieEnabled = YES;

and i get these errors from the NSZombieEnabled = YES; line:

Compiling main.m (2 errors, 2 warnings)
main.m:6: warning: type defaults to `int' in declaration of `NSZombieEnabled'
main.m:6: conflicting types for `NSZombieEnabled'
/System/Library/Frameworks/Foundation.framework/Headers/NSDebug.h:67: previous declaration of `NSZombieEnabled'
main.m:6: warning: data definition has no type or storage class

the project is a foundation tool type.

how do you go about using the zombie thing to find released objects that shouldn't have been?

thanks, ben.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: can't get NSZombie to work
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Enable Objective-C exception handling. [-fobjc-exceptions] causes additional warnings on pointers?
  • Next by Date: Re: Releasing a sub-view
  • Previous by thread: Re: Enable Objective-C exception handling. [-fobjc-exceptions] causes additional warnings on pointers?
  • Next by thread: Re: can't get NSZombie to work
  • Index(es):
    • Date
    • Thread