Created
May 4, 2012 18:23
-
-
Save marknorgren/2596743 to your computer and use it in GitHub Desktop.
Printing out addresses of objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSNumber *currentCounter = appDelegate.newsCount; | |
DLog(@"currentCount Address: %p", currentCounter); | |
DLog(@"newsCount Address: %p", (appDelegate.newsCount)); | |
DLog(@"currentCount Value: %@", currentCounter); | |
DLog(@"newsCount value: %@", appDelegate.newsCount); | |
DLog(@"currentCounter: %@", currentCounter); | |
DLog(@"%@<%x>", currentCounter, &*currentCounter); | |
DLog(@"%@<%x>", currentCounter, ¤tCounter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment