Skip to content

Instantly share code, notes, and snippets.

@ahmattox
Created March 6, 2012 14:08
Show Gist options
  • Save ahmattox/1986467 to your computer and use it in GitHub Desktop.
Save ahmattox/1986467 to your computer and use it in GitHub Desktop.
Extend Description for NSObject Subclasses
- (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