Changeset 5090


Ignore:
Timestamp:
Feb 22, 2008, 4:37:52 AM (14 years ago)
Author:
livings124
Message:

improvements on the tracker inspector tab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r5088 r5090  
    9696    [[fTabMatrix cellWithTag: TAB_INFO_TAG] setIcon: [NSImage imageNamed: @"InfoGeneral.png"]];
    9797    [[fTabMatrix cellWithTag: TAB_ACTIVITY_TAG] setIcon: [NSImage imageNamed: @"InfoActivity.png"]];
    98     //[[fTabMatrix cellWithTag: TAB_TRACKER_TAG] setIcon: [NSImage imageNamed: @"InfoTracker.png"]];
     98    [[fTabMatrix cellWithTag: TAB_TRACKER_TAG] setIcon: [NSImage imageNamed: @"InfoTracker.png"]];
    9999    [[fTabMatrix cellWithTag: TAB_PEERS_TAG] setIcon: [NSImage imageNamed: @"InfoPeers.png"]];
    100100    [[fTabMatrix cellWithTag: TAB_FILES_TAG] setIcon: [NSImage imageNamed: @"InfoFiles.png"]];
     
    291291        [fAnnounceLastField setStringValue: @""];
    292292        [fAnnounceResponseField setStringValue: @""];
     293        [fAnnounceResponseField setToolTip: nil];
     294        [fAnnounceResponseField setSelectable: NO];
    293295        [fAnnounceNextField setStringValue: @""];
    294296        [fAnnounceManualField setStringValue: @""];
     
    299301        [fScrapeLastField setStringValue: @""];
    300302        [fScrapeResponseField setStringValue: @""];
     303        [fScrapeResponseField setToolTip: nil];
     304        [fScrapeResponseField setSelectable: NO];
    301305        [fScrapeNextField setStringValue: @""];
    302306       
     
    10691073    if ([fTorrents count] != 1)
    10701074        return;
    1071    
    10721075    Torrent * torrent = [fTorrents objectAtIndex: 0];
    10731076   
     
    10781081   
    10791082    [fAnnounceLastField setObjectValue: [torrent lastAnnounceTime]];
    1080     #warning make selectable/tooltip
    1081     [fAnnounceResponseField setStringValue: [torrent announceResponse]];
     1083   
     1084    NSString * announceResponse = [torrent announceResponse];
     1085    [fAnnounceResponseField setStringValue: announceResponse];
     1086    [fAnnounceResponseField setToolTip: announceResponse];
     1087    [fAnnounceResponseField setSelectable: ![announceResponse isEqualToString: @""]];
    10821088   
    10831089    #warning format into minutes, etc.
     
    10931099   
    10941100    [fScrapeLastField setObjectValue: [torrent lastScrapeTime]];
    1095     [fScrapeResponseField setStringValue: [torrent scrapeResponse]];
     1101   
     1102    NSString * scrapeResponse = [torrent scrapeResponse];
     1103    [fScrapeResponseField setStringValue: scrapeResponse];
     1104    [fScrapeResponseField setToolTip: scrapeResponse];
     1105    [fScrapeResponseField setSelectable: ![scrapeResponse isEqualToString: @""]];
    10961106   
    10971107    int scrapeNext = [torrent nextScrapeTime];
Note: See TracChangeset for help on using the changeset viewer.