+- (void)setAllowsDragging:(bool)flag
+{
+ _allowsDragging = flag;
+}
+
+- (bool)allowsDragging
+{
+ return _allowsDragging;
+}
+
+- (void)moveTab:(NSTabViewItem *)tab toIndex:(int)index
+{
+ if ([self indexOfTabViewItem:tab] != index)
+ {
+ [tab retain];
+ [self removeTabViewItem:tab];
+ [self insertTabViewItem:tab atIndex:index];
+ [self selectTabViewItem:tab];
+ }
+}
+