Changeset 12991


Ignore:
Timestamp:
Oct 18, 2011, 2:30:22 AM (11 years ago)
Author:
livings124
Message:

Silence some new warnings with LLVM 3.0/Xcode 4.2

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Transmission.xcodeproj/project.pbxproj

    r12961 r12991  
    20002000                        attributes = {
    20012001                                BuildIndependentTargetsInParallel = YES;
    2002                                 LastUpgradeCheck = 0410;
     2002                                LastUpgradeCheck = 0420;
    20032003                                ORGANIZATIONNAME = "The Transmission Project";
    20042004                        };
  • trunk/macosx/Controller.m

    r12944 r12991  
    12561256            if (selected == 1)
    12571257            {
    1258                 NSString * torrentName = [[torrents objectAtIndex: 0] name];
     1258                NSString * torrentName = [(Torrent *)[torrents objectAtIndex: 0] name];
    12591259               
    12601260                if (deleteData)
     
    13801380        if ([torrents count] == 1)
    13811381        {
    1382             NSString * torrentName = [[torrents objectAtIndex: 0] name];
     1382            NSString * torrentName = [(Torrent *)[torrents objectAtIndex: 0] name];
    13831383            message = [NSString stringWithFormat: NSLocalizedString(@"Are you sure you want to remove \"%@\" from the transfer list?",
    13841384                                                                  "Remove completed confirm panel -> title"), torrentName];
     
    14361436    if (count == 1)
    14371437        [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]]];
    14391439    else
    14401440        [panel setMessage: [NSString stringWithFormat: NSLocalizedString(@"Select the new folder for %d data files.",
     
    17831783{
    17841784    NSString * sortType;
    1785     switch ([sender tag])
     1785    switch ([(NSMenuItem *)sender tag])
    17861786    {
    17871787        case SORT_ORDER_TAG:
     
    18111811            break;
    18121812        default:
    1813             NSAssert1(NO, @"Unknown sort tag received: %d", [sender tag]);
     1813            NSAssert1(NO, @"Unknown sort tag received: %d", [(NSMenuItem *)sender tag]);
    18141814            return;
    18151815    }
     
    18331833- (void) setSortReverse: (id) sender
    18341834{
    1835     const BOOL setReverse = [sender tag] == SORT_DESC_TAG;
     1835    const BOOL setReverse = [(NSMenuItem *)sender tag] == SORT_DESC_TAG;
    18361836    if (setReverse != [fDefaults boolForKey: @"SortReverse"])
    18371837    {
     
    22362236        [fTableView removeCollapsedGroup: [torrent groupValue]]; //remove old collapsed group
    22372237       
    2238         [torrent setGroupValue: [sender tag]];
     2238        [torrent setGroupValue: [(NSMenuItem *)sender tag]];
    22392239    }
    22402240   
  • trunk/macosx/FileOutlineController.m

    r12940 r12991  
    334334        NSString * path = [fTorrent fileLocation: item];
    335335        if (!path)
    336             path = [[item path] stringByAppendingPathComponent: [item name]];
     336            path = [[(FileListNode *)item path] stringByAppendingPathComponent: [(FileListNode *)item name]];
    337337        return path;
    338338    }
  • trunk/macosx/InfoTrackersViewController.m

    r12977 r12991  
    185185}
    186186
    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
    189190    return NO;
    190191}
  • trunk/macosx/TorrentCell.m

    r12940 r12991  
    785785- (NSAttributedString *) attributedTitle
    786786{
    787     NSString * title = [[self representedObject] name];
     787    NSString * title = [(Torrent *)[self representedObject] name];
    788788    return [[[NSAttributedString alloc] initWithString: title attributes: fTitleAttributes] autorelease];
    789789}
  • trunk/macosx/TorrentTableView.m

    r12940 r12991  
    203203- (NSString *) outlineView: (NSOutlineView *) outlineView typeSelectStringForTableColumn: (NSTableColumn *) tableColumn item: (id) item
    204204{
    205     return [item isKindOfClass: [Torrent class]] ? [item name]
     205    return [item isKindOfClass: [Torrent class]] ? [(Torrent *)item name]
    206206            : [[self preparedCellAtColumn: [self columnWithIdentifier: @"Group"] row: [self rowForItem: item]] stringValue];
    207207}
  • trunk/macosx/TrackerCell.m

    r12940 r12991  
    6565+ (void) initialize
    6666{
    67     fTrackerIconCache = [[NSMutableDictionary alloc] init];
     67    fTrackerIconCache = [[NSCache alloc] init];
    6868    fTrackerIconLoading = [[NSMutableSet alloc] init];
    6969}
Note: See TracChangeset for help on using the changeset viewer.