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];
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [indexes count]];
NSEnumerator * enumerator = [[fMessages objectsAtIndexes: indexes] objectEnumerator];
NSDictionary * message;
while ((message = [enumerator nextObject]))
for (NSDictionary * message in [fMessages objectsAtIndexes: indexes])
[messageStrings addObject: [self stringForMessage: message]];
[pb setString: [messageStrings componentsJoinedByString: @"\n"] forType: NSStringPboardType];
@ -315,9 +313,7 @@
//create the text to output
NSMutableArray * messageStrings = [NSMutableArray arrayWithCapacity: [fMessages count]];
NSEnumerator * enumerator = [sortedMessages objectEnumerator];
NSDictionary * message;
while ((message = [enumerator nextObject]))
for (NSDictionary * message in sortedMessages)
[messageStrings addObject: [self stringForMessage: message]];
NSString * fileString = [[messageStrings componentsJoinedByString: @"\n"] retain];