Re: logging object creations and destructions
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