Ignore:
Timestamp:
May 27, 2012, 10:31:58 PM (9 years ago)
Author:
livings124
Message:

#4920 On Lion, use window restoration on the message log and stats window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r13315 r13318  
    158158@implementation Controller
    159159
     160@synthesize messageWindowController = fMessageController;
     161
    160162+ (void) initialize
    161163{
     
    731733    //complete cleanup
    732734    tr_sessionClose(fLib);
     735}
     736
     737- (tr_session *) sessionHandle
     738{
     739    return fLib;
    733740}
    734741
     
    17451752}
    17461753
    1747 - (void) showMessageWindow: (id) sender
     1754- (MessageWindowController *) messageWindowController
    17481755{
    17491756    if (!fMessageController)
    17501757        fMessageController = [[MessageWindowController alloc] init];
    1751     [fMessageController showWindow: nil];
     1758   
     1759    return fMessageController;
     1760}
     1761
     1762- (void) showMessageWindow: (id) sender
     1763{
     1764    [[self messageWindowController] showWindow: nil];
    17521765}
    17531766
    17541767- (void) showStatsWindow: (id) sender
    17551768{
    1756     [[StatsWindowController statsWindow: fLib] showWindow: nil];
     1769    [[StatsWindowController statsWindow] showWindow: nil];
    17571770}
    17581771
Note: See TracChangeset for help on using the changeset viewer.