• 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: logging object creations and destructions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logging object creations and destructions


  • Subject: Re: logging object creations and destructions
  • From: Paul Bruneau <email@hidden>
  • Date: Thu, 14 Feb 2008 10:24:19 -0500

On Feb 14, 2008, at 10:16 AM, Torsten Curdt wrote:

I know about NSZombie but I was wondering if there is a way to log all object creations and destructions somehow.

cheers
--
Torsten

Sometimes when I am curious about when exactly my stuff is getting destroyed, I implement -dealloc in my objects to create a log entry:


- (void)dealloc;
{
	NSLog(@"dealloc: %@", self);
	[super dealloc];
}

but maybe you were looking for a globally available "set once" kind of setting and that would be something I do not know.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >logging object creations and destructions (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: logging object creations and destructions
  • Next by Date: Re: single vs multiple NIBs
  • Previous by thread: Re: logging object creations and destructions
  • Next by thread: Newbie Issue: isDescendantOf: error
  • Index(es):
    • Date
    • Thread