Created
March 6, 2012 14:08
-
-
Save ahmattox/1986467 to your computer and use it in GitHub Desktop.
Extend Description for NSObject Subclasses
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
- (NSString *)description { | |
return [NSString stringWithFormat:@"<%@: %p; name = %@; location = (%f, %f)>", NSStringFromClass([self class]), self, name, loc.x, loc.y]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment