text: //
  //  MMAttachedTabBarButton.h
  //  MMTabBarView
  //
  //  Created by Michael Monscheuer on 9/5/12.
  //
  //
  
  #import "MMTabBarButton.h"
  
  #import "MMProgressIndicator.h"
  #import "MMTabBarView.h"
  
  @class MMAttachedTabBarButtonCell;
  
  @protocol MMTabStyle;
  
  @interface MMAttachedTabBarButton : MMTabBarButton {
  
  @private
      NSTabViewItem *_tabViewItem;
      BOOL _isInAnimatedSlide;
      BOOL _isInDraggedSlide;
  }
  
  @property (strong) NSTabViewItem *tabViewItem;
  @property (assign) NSRect slidingFrame;
  @property (readonly) BOOL isInAnimatedSlide;
  @property (assign) BOOL isInDraggedSlide;
  @property (readonly) BOOL isSliding;
  @property (assign) BOOL isOverflowButton;
  
  // designated initializer
  - (id)initWithFrame:(NSRect)frame tabViewItem:(NSTabViewItem *)anItem;
  
  // overidden accessors (casting)
  - (MMAttachedTabBarButtonCell *)cell;
  - (void)setCell:(MMAttachedTabBarButtonCell *)aCell;
  
  #pragma mark Drag Support
  
  - (NSRect)draggingRect;
  - (NSImage *)dragImage;
  
  #pragma mark -
  #pragma mark Animation Support
  
  - (void)slideAnimationWillStart;
  - (void)slideAnimationDidEnd;
  
  @end
  