mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:00:38 +00:00
Fix description methods.
This commit is contained in:
parent
9ba7063a45
commit
40a9e5f7b2
1 changed files with 8 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue