Diff for /chimera/MJExtendedTabView.m between versions 1.3 and 1.4

version 1.3, 2002/03/04 12:55:22 version 1.4, 2002/03/05 10:16:08
Line 20 Line 20
 - (id)initWithFrame:(NSRect)frameRect  - (id)initWithFrame:(NSRect)frameRect
 {  {
     if ( (self = [super initWithFrame:frameRect]) ) {      if ( (self = [super initWithFrame:frameRect]) ) {
        [self setAutoHides:YES];        autoHides = YES;
     }      }
     return self;      return self;
 }  }
Line 67 Line 67
   
 - (BOOL)autoHides  - (BOOL)autoHides
 {  {
    return _autoHides;    return autoHides;
 }  }
   
 - (void)setAutoHides:(BOOL)newSetting  - (void)setAutoHides:(BOOL)newSetting
 {  {
    _autoHides = newSetting;    autoHides = newSetting;
 }  }
   
   
Line 84 Line 84
 // Only to be used with the 2 types of tab view which we use in Chimera.  // Only to be used with the 2 types of tab view which we use in Chimera.
 - (void)showOrHideTabsAsAppropriate  - (void)showOrHideTabsAsAppropriate
 {  {
    if ( [self autohides] ) {//    if ( autoHides == YES ) {
         if ( [[self tabViewItems] count] < 2) {          if ( [[self tabViewItems] count] < 2) {
             if ( [self tabViewType] != NSNoTabsBezelBorder ) {              if ( [self tabViewType] != NSNoTabsBezelBorder ) {
                 [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) + 10 )];                  [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) + 10 )];
Line 97 Line 97
             [self setTabViewType:NSTopTabsBezelBorder];              [self setTabViewType:NSTopTabsBezelBorder];
         }          }
         [self display];          [self display];
    }//    }
 }  }
   
   

Removed from v.1.3  
changed lines
  Added in v.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>