Changeset 12991
- Timestamp:
- Oct 18, 2011, 2:30:22 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Transmission.xcodeproj/project.pbxproj
r12961 r12991 2000 2000 attributes = { 2001 2001 BuildIndependentTargetsInParallel = YES; 2002 LastUpgradeCheck = 04 10;2002 LastUpgradeCheck = 0420; 2003 2003 ORGANIZATIONNAME = "The Transmission Project"; 2004 2004 }; -
trunk/macosx/Controller.m
r12944 r12991 1256 1256 if (selected == 1) 1257 1257 { 1258 NSString * torrentName = [ [torrents objectAtIndex: 0] name];1258 NSString * torrentName = [(Torrent *)[torrents objectAtIndex: 0] name]; 1259 1259 1260 1260 if (deleteData) … … 1380 1380 if ([torrents count] == 1) 1381 1381 { 1382 NSString * torrentName = [ [torrents objectAtIndex: 0] name];1382 NSString * torrentName = [(Torrent *)[torrents objectAtIndex: 0] name]; 1383 1383 message = [NSString stringWithFormat: NSLocalizedString(@"Are you sure you want to remove \"%@\" from the transfer list?", 1384 1384 "Remove completed confirm panel -> title"), torrentName]; … … 1436 1436 if (count == 1) 1437 1437 [panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the new folder for \"%@\".", 1438 "Move torrent -> select destination folder"), [ [torrents objectAtIndex: 0] name]]];1438 "Move torrent -> select destination folder"), [(Torrent *)[torrents objectAtIndex: 0] name]]]; 1439 1439 else 1440 1440 [panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the new folder for %d data files.", … … 1783 1783 { 1784 1784 NSString * sortType; 1785 switch ([ sender tag])1785 switch ([(NSMenuItem *)sender tag]) 1786 1786 { 1787 1787 case SORT_ORDER_TAG: … … 1811 1811 break; 1812 1812 default: 1813 NSAssert1(NO, @"Unknown sort tag received: %d", [ sender tag]);1813 NSAssert1(NO, @"Unknown sort tag received: %d", [(NSMenuItem *)sender tag]); 1814 1814 return; 1815 1815 } … … 1833 1833 - (void) setSortReverse: (id) sender 1834 1834 { 1835 const BOOL setReverse = [ sender tag] == SORT_DESC_TAG;1835 const BOOL setReverse = [(NSMenuItem *)sender tag] == SORT_DESC_TAG; 1836 1836 if (setReverse != [fDefaults boolForKey: @"SortReverse"]) 1837 1837 { … … 2236 2236 [fTableView removeCollapsedGroup: [torrent groupValue]]; //remove old collapsed group 2237 2237 2238 [torrent setGroupValue: [ sender tag]];2238 [torrent setGroupValue: [(NSMenuItem *)sender tag]]; 2239 2239 } 2240 2240 -
trunk/macosx/FileOutlineController.m
r12940 r12991 334 334 NSString * path = [fTorrent fileLocation: item]; 335 335 if (!path) 336 path = [[ item path] stringByAppendingPathComponent: [item name]];336 path = [[(FileListNode *)item path] stringByAppendingPathComponent: [(FileListNode *)item name]]; 337 337 return path; 338 338 } -
trunk/macosx/InfoTrackersViewController.m
r12977 r12991 185 185 } 186 186 187 - (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex 188 { 187 - (BOOL) tableView: (NSTableView *) tableView shouldEditTableColumn: (NSTableColumn *) tableColumn row: (NSInteger) row 188 { 189 //don't allow tier row to be edited by double-click 189 190 return NO; 190 191 } -
trunk/macosx/TorrentCell.m
r12940 r12991 785 785 - (NSAttributedString *) attributedTitle 786 786 { 787 NSString * title = [ [self representedObject] name];787 NSString * title = [(Torrent *)[self representedObject] name]; 788 788 return [[[NSAttributedString alloc] initWithString: title attributes: fTitleAttributes] autorelease]; 789 789 } -
trunk/macosx/TorrentTableView.m
r12940 r12991 203 203 - (NSString *) outlineView: (NSOutlineView *) outlineView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn item: (id) item 204 204 { 205 return [item isKindOfClass: [Torrent class]] ? [ item name]205 return [item isKindOfClass: [Torrent class]] ? [(Torrent *)item name] 206 206 : [[self preparedCellAtColumn: [self columnWithIdentifier: @"Group"] row: [self rowForItem: item]] stringValue]; 207 207 } -
trunk/macosx/TrackerCell.m
r12940 r12991 65 65 + (void) initialize 66 66 { 67 fTrackerIconCache = [[NS MutableDictionaryalloc] init];67 fTrackerIconCache = [[NSCache alloc] init]; 68 68 fTrackerIconLoading = [[NSMutableSet alloc] init]; 69 69 }
Note: See TracChangeset
for help on using the changeset viewer.