Skip to content

Instantly share code, notes, and snippets.

@marknorgren
Created May 4, 2012 18:23
Show Gist options
  • Save marknorgren/2596743 to your computer and use it in GitHub Desktop.
Save marknorgren/2596743 to your computer and use it in GitHub Desktop.
Printing out addresses of objects
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, &currentCounter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment