missed one class for fast enumeration

This commit is contained in:
Mitchell Livingston 2008-12-26 15:31:25 +00:00
parent c89caf9cb4
commit 7e8a187b69
1 changed files with 2 additions and 6 deletions

View File

@ -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];