I have a very straight forward class with mostly NSString type properties. In it, I wrote a trivial implementation of the description method. I found that whenever I try to include "self" in the description, it crashes my iPhone app. An example is something such as the following:
- (NSString *)description
{
NSString *result;
result = [NSString stringWithFormat:@"me: %@\nsomeVar: %@", self, self.someVar];
return result;
}
As soon as I remove the first parameter to the format string, self, it works as expected.