Index: src/OFINICategory.m ================================================================== --- src/OFINICategory.m +++ src/OFINICategory.m @@ -94,19 +94,29 @@ [_key release]; [_value release]; [super dealloc]; } + +- (OFString *)description +{ + return [OFString stringWithFormat: @"%@ = %@", _key, _value]; +} @end @implementation OFINICategoryComment - (void)dealloc { [_comment release]; [super dealloc]; } + +- (OFString *)description +{ + return [[_comment copy] autorelease]; +} @end @implementation OFINICategory @synthesize name = _name; @@ -484,6 +494,12 @@ @throw [OFInvalidArgumentException exception]; } return true; } + +- (OFString *)description +{ + return [OFString stringWithFormat: @"<%@ \"%@\": %@>", + self.class, _name, _lines]; +} @end Index: src/OFINIFile.m ================================================================== --- src/OFINIFile.m +++ src/OFINIFile.m @@ -171,6 +171,12 @@ first: first]) first = false; objc_autoreleasePoolPop(pool); } + +- (OFString *)description +{ + return [OFString stringWithFormat: @"<%@: %@>", + self.class, _categories]; +} @end