From 40a9e5f7b2055b97a0f754653caf999eb5855d34 Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Wed, 1 Jan 2020 16:23:03 +0100 Subject: [PATCH] Fix description methods. --- Source/GSXibLoader.m | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/Source/GSXibLoader.m b/Source/GSXibLoader.m index b0e9f2c8d..1e24314b5 100644 --- a/Source/GSXibLoader.m +++ b/Source/GSXibLoader.m @@ -278,11 +278,9 @@ - (NSString*) description { - NSMutableString *description = [[super description] mutableCopy]; - [description appendFormat: @" - label: %@, ", label]; - [description appendFormat: @" source: %@, ", NSStringFromClass([source class])]; - [description appendFormat: @" destination: %@, ", NSStringFromClass([destination class])]; - return AUTORELEASE(description); + return [NSString stringWithFormat: @"%@ - label: %@, source: %@, destination: %@", + [super description], label, NSStringFromClass([source class]), + NSStringFromClass([destination class])]; } - (id) nibInstantiate @@ -329,7 +327,7 @@ SEL sel; selName = [NSString stringWithFormat: @"set%@%@:", - [[label substringToIndex: 1] uppercaseString], + [[label substringToIndex: 1] uppercaseString], [label substringFromIndex: 1]]; sel = NSSelectorFromString(selName); @@ -759,13 +757,10 @@ - (NSString*) description { - NSMutableString *description = [[super description] mutableCopy]; - [description appendFormat: @" - sourceID: %@: ", sourceID]; - [description appendFormat: @" maxID: %@: ", maxID]; - [description appendFormat: @" objectRecords: %@: ", objectRecords]; - [description appendFormat: @" flattenedProperties: %@: ", flattenedProperties]; - [description appendFormat: @" connectionRecords: %@: ", connectionRecords]; - return AUTORELEASE(description); + return [NSString stringWithFormat: + @"%@ - sourceID: %@: maxID: %@: objectRecords: %@: flattenedProperties: %@: connectionRecords: %@: ", + [super description], sourceID, maxID, objectRecords, + flattenedProperties, connectionRecords]; } - (NSEnumerator*) connectionRecordEnumerator