Diff for /chimera/MJExtendedTabView.m between versions 1.1 and 1.2

version 1.1, 2002/03/03 09:34:52 version 1.2, 2002/03/03 10:49:50
Line 80 Line 80
 /*** Instance Methods                   ***/  /*** Instance Methods                   ***/
 /******************************************/  /******************************************/
   
   // 03-03-2002 mlj: Modifies tab view size and type appropriately... Fragile.
   // Only to be used with the 2 types of tab view which we use in Chimera.
 - (void)showOrHideTabsAsAppropriate  - (void)showOrHideTabsAsAppropriate
 {  {
     NSLog(@"%d", [[self tabViewItems] count]);  
   
     if ( [[self tabViewItems] count] < 2) {      if ( [[self tabViewItems] count] < 2) {
           if ( [self tabViewType] != NSNoTabsBezelBorder ) {
               [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) + 10 )];
           }
         [self setTabViewType:NSNoTabsBezelBorder];          [self setTabViewType:NSNoTabsBezelBorder];
         //ADD 10 to the frame height.  
     } else {      } else {
           if ( [self tabViewType] != NSTopTabsBezelBorder ) {
               [self setFrameSize:NSMakeSize( NSWidth([self frame]), NSHeight([self frame]) - 10 )];
           }
         [self setTabViewType:NSTopTabsBezelBorder];          [self setTabViewType:NSTopTabsBezelBorder];
         //SUBTRACT 10 from the frame height.  
     }      }
   
     [self display];      [self display];
 }  }
   

Removed from v.1.1  
changed lines
  Added in v.1.2


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