Implement -description #199

Open
marcetcheverry opened this Issue May 28, 2011 · 1 comment

Comments

Projects
None yet
2 participants

Implement description in the classes so when you nslog them you have something useful

- (NSString *)description
{
    return [NSString stringWithFormat:"<%@, %p: URL %@>", [self class], self, [self URL]];
}
Contributor

0xced commented May 28, 2011

It would be nice to also have a more verbose -debugDescription for when using the po command in gdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment