missed one class for fast enumeration
This commit is contained in:
parent
c89caf9cb4
commit
7e8a187b69
|
@ -259,9 +259,7 @@
|
||||||
NSIndexSet * indexes = [fMessageTable selectedRowIndexes];
|
NSIndexSet * indexes = [fMessageTable selectedRowIndexes];
|
||||||
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [indexes count]];
|
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [indexes count]];
|
||||||
|
|
||||||
NSEnumerator * enumerator = [[fMessages objectsAtIndexes: indexes] objectEnumerator];
|
for (NSDictionary * message in [fMessages objectsAtIndexes: indexes])
|
||||||
NSDictionary * message;
|
|
||||||
while ((message = [enumerator nextObject]))
|
|
||||||
[messageStrings addObject: [self stringForMessage: message]];
|
[messageStrings addObject: [self stringForMessage: message]];
|
||||||
|
|
||||||
[pb setString: [messageStrings componentsJoinedByString: @"\n"] forType: NSStringPboardType];
|
[pb setString: [messageStrings componentsJoinedByString: @"\n"] forType: NSStringPboardType];
|
||||||
|
@ -315,9 +313,7 @@
|
||||||
|
|
||||||
//create the text to output
|
//create the text to output
|
||||||
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [fMessages count]];
|
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [fMessages count]];
|
||||||
NSEnumerator * enumerator = [sortedMessages objectEnumerator];
|
for (NSDictionary * message in sortedMessages)
|
||||||
NSDictionary * message;
|
|
||||||
while ((message = [enumerator nextObject]))
|
|
||||||
[messageStrings addObject: [self stringForMessage: message]];
|
[messageStrings addObject: [self stringForMessage: message]];
|
||||||
|
|
||||||
NSString * fileString = [[messageStrings componentsJoinedByString: @"\n"] retain];
|
NSString * fileString = [[messageStrings componentsJoinedByString: @"\n"] retain];
|
||||||
|
|
Loading…
Reference in New Issue