Ignore:
Timestamp:
Mar 12, 2006, 3:45:55 PM (16 years ago)
Author:
titer
Message:

Moved 'reveal in finder' to the Torrent class, and do it in a PathFinder?-
compatible way (fixes #6)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_api/macosx/TorrentTableView.m

    r150 r151  
    2323#import "TorrentTableView.h"
    2424#import "Controller.h"
     25#import "Torrent.h"
    2526
    2627@implementation TorrentTableView
     28
     29- (void) setTorrents: (NSArray *) torrents
     30{
     31    fTorrents = torrents;
     32}
    2733
    2834- (void) pauseOrResume: (int) row
     
    8995    NSPoint point;
    9096    int row, col;
     97    Torrent * torrent;
    9198
    9299    point = [self convertPoint: [e locationInWindow] fromView: NULL];
     
    104111    else if( [self pointInRevealRect: point] )
    105112    {
    106 #if 0
    107         [fController finderReveal: [NSString stringWithFormat:
    108             @"%@/%@", [NSString stringWithUTF8String: fStat[row].folder],
    109             [NSString stringWithUTF8String: fStat[row].info.name]]];
     113        torrent = [fTorrents objectAtIndex: row];
     114        [torrent reveal];
    110115        [self display];
    111 #endif
    112116    }
    113117    else if( row >= 0 && ( [e modifierFlags] & NSAlternateKeyMask ) )
Note: See TracChangeset for help on using the changeset viewer.