<object class="NSSortDescriptor" key="NSSortDescriptorPrototype">
<string key="NSKey">Message</string>
<bool key="NSAscending">YES</bool>
- <string key="NSSelector">localizedCaseInsensitiveCompare:</string>
+ <string key="NSSelector">compareFinder:</string>
</object>
</object>
</object>
- (int) stalledMinutes;
- (BOOL) isStalled;
-- (NSNumber *) stateSortKey;
+- (NSInteger) stateSortKey;
- (tr_torrent *) torrentStruct;
return fStalled;
}
-- (NSNumber *) stateSortKey
+- (NSInteger) stateSortKey
{
- if (![self isActive])
- return [NSNumber numberWithInt: 0];
- else if ([self isSeeding])
- return [NSNumber numberWithInt: 1];
- else
- return [NSNumber numberWithInt: 2];
+ if (![self isActive]) //paused
+ return 0;
+ else if ([self isSeeding]) //seeding
+ return 1;
+ else //downloading
+ return 2;
}
- (tr_torrent *) torrentStruct
NSDictionary * userInfo = [NSDictionary dictionaryWithObject: [NSNumber numberWithInt: row] forKey: @"Row"];
TorrentCell * cell = (TorrentCell *)[self preparedCellAtColumn: -1 row: row];
- [cell addTrackingAreasForView: self inRect: [self rectOfRow: row] withUserInfo: userInfo
- mouseLocation: mouseLocation];
+ [cell addTrackingAreasForView: self inRect: [self rectOfRow: row] withUserInfo: userInfo mouseLocation: mouseLocation];
}
}