for (Torrent * torrent in fTorrents)
[torrent update];
+ NSArray * selectedValues = [fTableView selectedValues];
+
NSSortDescriptor * descriptor = [[NSSortDescriptor alloc] initWithKey: @"queuePosition" ascending: YES];
NSArray * descriptors = [NSArray arrayWithObject: descriptor];
[descriptor release];
[fTorrents sortUsingDescriptors: descriptors];
[self fullUpdateUI];
+
+ [fTableView selectValues: selectedValues];
}
@end
return nil;
}
--(void) setPreviousFinishedPieces: (NSIndexSet *) indexes
+- (void) setPreviousFinishedPieces: (NSIndexSet *) indexes
{
[fPreviousFinishedIndexes release];
fPreviousFinishedIndexes = [indexes retain];