Changeset 1754


Ignore:
Timestamp:
Apr 18, 2007, 9:17:47 PM (15 years ago)
Author:
livings124
Message:
  • When typing the name of a torrent to highlite it, scroll to it too.
  • Add a localized string and remove a warning.
Location:
trunk
Files:
3 edited

Legend:

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

    r1743 r1754  
    298298                4DFBC2DE09C0970D00D5C571 /* Torrent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Torrent.m; path = macosx/Torrent.m; sourceTree = "<group>"; };
    299299                8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; name = Info.plist; path = macosx/Info.plist; sourceTree = "<group>"; };
    300                 8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; };
     300                8D1107320486CEB800E47090 /* Transmission.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Transmission.app; sourceTree = BUILT_PRODUCTS_DIR; };
    301301                A200B8390A2263BA007BBB1E /* InfoWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InfoWindowController.h; path = macosx/InfoWindowController.h; sourceTree = "<group>"; };
    302302                A200B83A0A2263BA007BBB1E /* InfoWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = InfoWindowController.m; path = macosx/InfoWindowController.m; sourceTree = "<group>"; };
  • trunk/macosx/Torrent.m

    r1703 r1754  
    959959        return @"";
    960960   
    961     #warning localize string after release
    962961    NSString * error;
    963962    if (!(error = [NSString stringWithUTF8String: fStat->errorString])
    964963        && !(error = [NSString stringWithCString: fStat->errorString encoding: NSISOLatin1StringEncoding]))
    965         error = @"";
    966         //error = NSLocalizedString(@"(unreadable error)", "Torrent -> error string unreadable");
     964        error = NSLocalizedString(@"(unreadable error)", "Torrent -> error string unreadable");
    967965   
    968966    return error;
  • trunk/macosx/TorrentTableView.m

    r1645 r1754  
    217217   
    218218    //select torrent closest to text that isn't before text alphabetically
     219    int row;
    219220    NSEnumerator * enumerator = [tempTorrents objectEnumerator];
    220221    Torrent * torrent;
     
    222223        if ([[torrent name] caseInsensitiveCompare: text] != NSOrderedAscending)
    223224        {
    224             [self selectRow: [fTorrents indexOfObject: torrent] byExtendingSelection: NO];
     225            row = [fTorrents indexOfObject: torrent];
    225226            break;
    226227        }
     
    228229    //select last torrent alphabetically if no match found
    229230    if (!torrent)
    230         [self selectRow: [fTorrents indexOfObject: [tempTorrents lastObject]] byExtendingSelection: NO];
     231        row = [fTorrents indexOfObject: [tempTorrents lastObject]];
     232   
     233    [self selectRow: row byExtendingSelection: NO];
     234    [self scrollRowToVisible: row];
    231235}
    232236
Note: See TracChangeset for help on using the changeset viewer.