Changeset 699
- Timestamp:
- Jul 26, 2006, 2:54:36 AM (17 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/TorrentTableView.h
r680 r699 44 44 45 45 NSMutableArray * fKeyStrokes; 46 47 NSDictionary * fSmallStatusAttributes; 46 48 } 47 49 - (void) setTorrents: (NSArray *) torrents; -
trunk/macosx/TorrentTableView.m
r698 r699 64 64 fKeyStrokes = [[NSMutableArray alloc] init]; 65 65 66 fSmallStatusAttributes = [[NSDictionary alloc] initWithObjectsAndKeys: 67 [NSFont messageFontOfSize: 9.0], NSFontAttributeName, nil]; 68 66 69 fDefaults = [NSUserDefaults standardUserDefaults]; 67 70 } … … 79 82 { 80 83 [fKeyStrokes release]; 84 [fSmallStatusAttributes release]; 81 85 [super dealloc]; 82 86 } … … 288 292 return NO; 289 293 290 NSDictionary * statusAttributes = [NSDictionary dictionaryWithObjectsAndKeys:291 [NSFont messageFontOfSize: 9.0], NSFontAttributeName, nil];292 294 Torrent * torrent = [fTorrents objectAtIndex: row]; 293 295 NSString * statusString = ![fDefaults boolForKey: @"SmallStatusRegular"] && [torrent isActive] 294 296 && [torrent progress] < 1.0 ? [torrent remainingTimeString] : [torrent shortStatusString]; 295 297 296 float statusWidth = [statusString sizeWithAttributes: statusAttributes].width + 3.0;298 float statusWidth = [statusString sizeWithAttributes: fSmallStatusAttributes].width + 3.0; 297 299 298 300 NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"] row: row];
Note: See TracChangeset
for help on using the changeset viewer.