Changeset 9182


Ignore:
Timestamp:
Sep 26, 2009, 1:58:40 PM (13 years ago)
Author:
livings124
Message:

mac build compiles once again

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r9174 r9182  
    14771477}
    14781478
    1479 #warning reload table when necessary?
    1480 #warning fix!
    14811479- (void) updateInfoTracker
    14821480{
     
    14991497    Torrent * torrent = [fTorrents objectAtIndex: 0];
    15001498   
    1501     NSInteger seeders = [torrent seeders], leechers = [torrent leechers], completed = [torrent completedFromTracker];
     1499    #warning remove corresponding fields
     1500    /*NSInteger seeders = [torrent seeders], leechers = [torrent leechers], completed = [torrent completedFromTracker];
    15021501    [fSeedersField setStringValue: seeders >= 0 ? [NSString stringWithFormat: @"%d", seeders] : @""];
    15031502    [fLeechersField setStringValue: leechers >= 0 ? [NSString stringWithFormat: @"%d", leechers] : @""];
    1504     [fCompletedFromTrackerField setStringValue: completed >= 0 ? [NSString stringWithFormat: @"%d", completed] : @""];
     1503    [fCompletedFromTrackerField setStringValue: completed >= 0 ? [NSString stringWithFormat: @"%d", completed] : @""];*/
    15051504   
    15061505    BOOL active = [torrent isActive];
  • trunk/macosx/Torrent.h

    r9174 r9182  
    189189
    190190- (NSString *) stateString;
    191 
    192 - (NSInteger) seeders;
    193 - (NSInteger) leechers;
    194 - (NSInteger) completedFromTracker;
    195 
    196191- (NSInteger) totalPeersConnected;
    197192- (NSInteger) totalPeersTracker;
  • trunk/macosx/Torrent.m

    r9174 r9182  
    746746    tr_tracker_stat * stats = tr_torrentTrackers(fHandle, &count);
    747747   
    748     NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: count + stats[count-1].tier + 1];
     748    NSMutableArray * trackers = [NSMutableArray arrayWithCapacity: count + stats[count-1].tier];
    749749   
    750750    int prevTier = -1;
     
    12061206            return NSLocalizedString(@"Seeding", "Torrent -> status string");
    12071207    }
    1208 }
    1209 
    1210 - (NSInteger) seeders
    1211 {
    1212     return fStat->seeders;
    1213 }
    1214 
    1215 - (NSInteger) leechers
    1216 {
    1217     return fStat->leechers;
    1218 }
    1219 
    1220 - (NSInteger) completedFromTracker
    1221 {
    1222     return fStat->timesCompleted;
    12231208}
    12241209
Note: See TracChangeset for help on using the changeset viewer.