Changeset 771 for trunk/macosx


Ignore:
Timestamp:
Aug 14, 2006, 3:13:34 AM (16 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/macosx
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • 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.