Printing Instance ID to NSLog?

Posted by fuzzygoat on Stack Overflow See other posts from Stack Overflow or by fuzzygoat
Published on 2009-09-09T11:49:16Z Indexed on 2010/05/27 2:11 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

In the dealloc method for a class how would I print out the ID (or some other unique identifier) for the instance being deallocated?

- (void)dealloc {
    NSLog(@"_deallocing: ??");
    [super dealloc];
}

Is this possible? I am just trying to get a little more feedback in the console as an aid to learning.

many thanks -gary-

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about memory