MiMo42 / MMTabBarView

A Mac OS X tab bar view that works on 10.9+ with Xcode 9.3+. Pull requests welcomed.
http://mimo42.github.com/MMTabBarView/
243 stars 79 forks source link

tabView:willMoveTabViewItem:toIndex: added to MMTabBarViewDelegate #81

Closed mplpl closed 2 years ago

mplpl commented 2 years ago

This PR adds a message into MMTabBarViewDelegate called when a tab starts moving. It is important, because during this move operation the tab is removed and added in its new place. That means that for a moment the active tab changes and this in turn triggers tabView:didSelectTabViewItem: from NSTabViewDelegate. Not being able to detect that we are 'just' moving in the implementation of that message is a drewback that this PR is fixing.