In Objective-C, it's common to override -description with a method that prints the object ID and instance variable names/values. I'd like to make a generic -description method that does this through introspection, rather than manually doing this for each class. I'd like the output to be something like:
<ClassName: 0x??????, ivar1: value1, ivar2: value2, ivar3: value3, ...>
It would also be nice to sort by instance variable name (so they are always in the same order). Finally, if this could be put into a category safely overriding the NSObject functionality, that would be perfect (but I see that's not straightforward, as NSObject.m has a warning about using -[NSString stringWithFormat:] in -description).