Changeset 771


Ignore:
Timestamp:
Aug 14, 2006, 3:13:34 AM (15 years ago)
Author:
livings124
Message:

No need to make peer table make the window key, which also eliminates the need for a subclass.

Location:
trunk
Files:
2 deleted
6 edited

Legend:

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

    r768 r771  
    8282                A2173E1C0A33C1B300B0D8AB /* ActionButtonPressed.png in Resources */ = {isa = PBXBuildFile; fileRef = A2173E1B0A33C1B300B0D8AB /* ActionButtonPressed.png */; };
    8383                A21DFF100A292B2B007C5F76 /* Transfers.png in Resources */ = {isa = PBXBuildFile; fileRef = A21DFF0F0A292B2B007C5F76 /* Transfers.png */; };
    84                 A221DA8A0A8F7E7E0011E98E /* InfoTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = A221DA880A8F7E7E0011E98E /* InfoTableView.m */; };
    8584                A2305A800A3DC9E400AB2D77 /* ProgressBarWhite.png in Resources */ = {isa = PBXBuildFile; fileRef = A2305A7C0A3DC9E400AB2D77 /* ProgressBarWhite.png */; };
    8685                A2305A810A3DC9E400AB2D77 /* ProgressBarBlue.png in Resources */ = {isa = PBXBuildFile; fileRef = A2305A7D0A3DC9E400AB2D77 /* ProgressBarBlue.png */; };
     
    286285                A2173E1B0A33C1B300B0D8AB /* ActionButtonPressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ActionButtonPressed.png; path = macosx/Images/ActionButtonPressed.png; sourceTree = "<group>"; };
    287286                A21DFF0F0A292B2B007C5F76 /* Transfers.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Transfers.png; path = macosx/Images/Transfers.png; sourceTree = "<group>"; };
    288                 A221DA870A8F7E7E0011E98E /* InfoTableView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = InfoTableView.h; path = macosx/InfoTableView.h; sourceTree = "<group>"; };
    289                 A221DA880A8F7E7E0011E98E /* InfoTableView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = InfoTableView.m; path = macosx/InfoTableView.m; sourceTree = "<group>"; };
    290287                A2305A7C0A3DC9E400AB2D77 /* ProgressBarWhite.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarWhite.png; path = macosx/Images/ProgressBarWhite.png; sourceTree = "<group>"; };
    291288                A2305A7D0A3DC9E400AB2D77 /* ProgressBarBlue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = ProgressBarBlue.png; path = macosx/Images/ProgressBarBlue.png; sourceTree = "<group>"; };
     
    402399                                A2710E740A86796000CE4F7D /* PrefsWindow.h */,
    403400                                A2710E750A86796000CE4F7D /* PrefsWindow.m */,
    404                                 A221DA870A8F7E7E0011E98E /* InfoTableView.h */,
    405                                 A221DA880A8F7E7E0011E98E /* InfoTableView.m */,
    406401                        );
    407402                        name = Sources;
     
    818813                                A27ABC240A6ADE410020EC71 /* ImageBackgroundView.m in Sources */,
    819814                                A2710E770A86796000CE4F7D /* PrefsWindow.m in Sources */,
    820                                 A221DA8A0A8F7E7E0011E98E /* InfoTableView.m in Sources */,
    821815                        );
    822816                        runOnlyForDeploymentPostprocessing = 0;
  • trunk/macosx/English.lproj/InfoWindow.nib/classes.nib

    r761 r771  
    55            LANGUAGE = ObjC;
    66            OUTLETS = {fContextMenu = NSMenu; };
    7             SUPERCLASS = InfoTableView;
     7            SUPERCLASS = NSTableView;
    88        },
    99        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
    10         {CLASS = InfoTableView; LANGUAGE = ObjC; SUPERCLASS = NSTableView; },
    1110        {
    1211            ACTIONS = {
  • trunk/macosx/FileTableView.h

    r761 r771  
    2424
    2525#import <Cocoa/Cocoa.h>
    26 #import "InfoTableView.h"
    2726
    28 @interface FileTableView : InfoTableView
     27@interface FileTableView : NSTableView
    2928{
    3029    IBOutlet NSMenu * fContextMenu;
  • trunk/macosx/FileTableView.m

    r761 r771  
    2727@implementation FileTableView
    2828
     29- (void) mouseDown: (NSEvent *) event
     30{
     31    [[self window] makeKeyWindow];
     32    [super mouseDown: event];
     33}
     34
    2935- (NSMenu *) menuForEvent: (NSEvent *) e
    3036{
  • trunk/macosx/Torrent.m

    r770 r771  
    519519{
    520520    int totalPeers, i;
    521    
    522521    tr_peer_stat_t * peers = tr_torrentPeers(fHandle, & totalPeers);
     522   
     523    NSMutableArray * peerDics = [NSMutableArray arrayWithCapacity: totalPeers];
    523524    tr_peer_stat_t peer;
    524    
    525     NSMutableArray * peerDics = [NSMutableArray arrayWithCapacity: totalPeers];
    526525    NSString * client;
    527526    for (i = 0; i < totalPeers; i++)
     
    539538            [NSNumber numberWithBool: peer.isUploading], @"DL From", nil]];
    540539    }
    541     //NSLog(@"%d", tr_peerId(peer));
    542540   
    543541    tr_torrentPeersFree(peers, totalPeers);
Note: See TracChangeset for help on using the changeset viewer.