Ignore:
Timestamp:
Oct 31, 2006, 7:16:15 PM (16 years ago)
Author:
livings124
Message:

bindings for minimal view and advanced bar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r1043 r1044  
    147147   
    148148    [fWindow setAcceptsMouseMovedEvents: YES]; //ensure filter buttons display correctly
    149    
    150     [fAdvancedBarItem setState: [fDefaults boolForKey: @"UseAdvancedBar"]];
    151149
    152150    fToolbar = [[NSToolbar alloc] initWithIdentifier: @"Transmission Toolbar"];
     
    162160    //set table size
    163161    if ([fDefaults boolForKey: @"SmallView"])
    164     {
    165162        [fTableView setRowHeight: ROW_HEIGHT_SMALL];
    166         [fSmallViewItem setState: NSOnState];
    167     }
    168163   
    169164    //window min height
     
    17191714- (void) toggleSmallView: (id) sender
    17201715{
    1721     BOOL makeSmall = ![fDefaults boolForKey: @"SmallView"];
     1716    BOOL makeSmall = [fDefaults boolForKey: @"SmallView"];
    17221717   
    17231718    [fTableView setRowHeight: makeSmall ? ROW_HEIGHT_SMALL : ROW_HEIGHT_REGULAR];
    1724     [fSmallViewItem setState: makeSmall];
    1725    
    1726     [fDefaults setBool: makeSmall forKey: @"SmallView"];
    17271719   
    17281720    //window min height
     
    18821874- (void) toggleAdvancedBar: (id) sender
    18831875{
    1884     int state = ![fAdvancedBarItem state];
    1885     [fAdvancedBarItem setState: state];
    1886     [fDefaults setBool: state forKey: @"UseAdvancedBar"];
    1887    
    18881876    [fTableView display];
    18891877}
Note: See TracChangeset for help on using the changeset viewer.