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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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]];
Note: See TracChangeset for help on using the changeset viewer.