I have successfully implemented tabs in my macOS app through the functionality exposed in
NSWindow
(i.e. tabbingMode
, tabbingIdentifier
, newWindowForTab(_:)
, etc.). I can create and close tabs in a window, create a new window and not a tab, and move programmatically tabs to new windows. However, I cannot detect when the user decides to grab a tab and detach it from a group of tabs into a new window (similar to what you would get calling moveTabToNewWindow(_:)
)Is there any way to detect when a tab has been detached by the user? In the case that it is impossible, I would prefer to disable that option.
Regards,