Changeset 168


Ignore:
Timestamp:
Mar 28, 2006, 11:17:42 AM (16 years ago)
Author:
titer
Message:

Set click point before displaying so that mouse up on a button instantly
deselects it.
Store application icon when first loaded so it doesn't have badges on it.
Move a few things into the nib file
Put ellipis at end of name / tracker / announce if it doesn't fit

Location:
trunk/macosx
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.h

    r165 r168  
    6868    IBOutlet NSTextField        * fInfoDownloaded;
    6969    IBOutlet NSTextField        * fInfoUploaded;
     70    NSImage                     * fAppIcon;
    7071
    7172    io_connect_t                fRootPort;
  • trunk/macosx/Controller.m

    r165 r168  
    6565    [fTorrents release];
    6666    tr_close( fLib );
     67    [fAppIcon release];
    6768    [super dealloc];
    6869}
     
    7071- (void) awakeFromNib
    7172{
    72     [fWindow setContentMinSize: NSMakeSize( 400, 120 )];
     73    fAppIcon = [[NSApp applicationIconImage] copy];
    7374
    7475    [fPrefsController setPrefsWindow: fLib];
    7576    fDefaults = [NSUserDefaults standardUserDefaults];
    76 
    77     [fInfoPanel setFrameAutosaveName:@"InfoPanel"];
    7877
    7978    //check advanced bar menu item
     
    177176- (BOOL) windowShouldClose: (id) sender
    178177{
    179     [fWindow orderOut: NULL];
     178    [fWindow orderOut: nil];
    180179    return NO;
    181180}
     
    184183    hasVisibleWindows: (BOOL) flag
    185184{
    186     [self showMainWindow: NULL];
     185    [self showMainWindow: nil];
    187186    return NO;
    188187}
     
    562561    if( row < 0 )
    563562    {
    564         [fInfoImageView setImage: [NSApp applicationIconImage]];
    565         [fInfoName setStringValue: @"No torrent selected"];
     563        [fInfoImageView setImage: fAppIcon];
     564        [fInfoName setStringValue: @"No Torrent Selected"];
    566565        [fInfoSize setStringValue: @""];
    567566        [fInfoTracker setStringValue: @""];
     
    587586    [fInfoPieceSize setStringValue: [NSString
    588587        stringForFileSize: [torrent pieceSize]]];
    589     [fInfoPieces setStringValue: [NSString
    590         stringWithInt: [torrent pieceCount]]];
     588    [fInfoPieces setIntValue: [torrent pieceCount]];
    591589    [fInfoHash1 setStringValue: [torrent hash1]];
    592590    [fInfoHash2 setStringValue: [torrent hash2]];
  • trunk/macosx/English.lproj/MainMenu.nib/info.nib

    r165 r168  
    2828        <key>IBOpenObjects</key>
    2929        <array>
    30                 <integer>273</integer>
     30                <integer>21</integer>
    3131        </array>
    3232        <key>IBSystem Version</key>
  • trunk/macosx/TorrentTableView.m

    r162 r168  
    138138    else;
    139139
     140    fClickPoint = NSMakePoint( 0, 0 );
    140141    [self display];
    141     fClickPoint = NSMakePoint( 0, 0 );
    142142}
    143143
Note: See TracChangeset for help on using the changeset viewer.