-- (void)mouseDragged:(NSEvent *)event
-{
- if (_draggedTab && [self allowsDragging]) {
- NSPoint currentPoint = [self convertPoint:[event locationInWindow] fromView:[[self window] contentView]];
- NSTabViewItem *curTab = [self tabViewItemAtPoint:currentPoint];
- if (curTab && ![curTab isEqualTo:_draggedTab]) {
- [self moveTab:_draggedTab toIndex:[self indexOfTabViewItem:curTab]];
- [self selectTabViewItem:_draggedTab];
- }
- }
- [super mouseDragged:event];
+- (void)mouseDragged:(NSEvent *)event {
+ if (_draggedTab && [self allowsDragging]) {
+ NSPoint currentPoint = [self convertPoint:[event locationInWindow] fromView:[[self window] contentView]];
+ NSTabViewItem *curTab = [self tabViewItemAtPoint:currentPoint];
+ if (curTab && ![curTab isEqualTo:_draggedTab]) {
+ [self moveTab:_draggedTab toIndex:[self indexOfTabViewItem:curTab]];
+ [self selectTabViewItem:_draggedTab];
+ }
+ }
+ [super mouseDragged:event];