views:

10

answers:

1

Is there a way to nicely print dictionaries in XCode during debugging? Selecting print description to console is ugly.

A: 

You could subclass NSDictionary and override the -(NSString*)description function of NSObject.

Take you 5 minutes.

fogelbaby
Then I'd have to change the class of all of my dictionaries which is too high a price
Casebash
Find "NSDictionary", replace with "NSNewDictionary". Easy in Xcode 3, super trivial in 4 with the preview mode. So 6 minutes.
fogelbaby