Delete menu item "Show / hide tab"

The latest version of macOS Sierra adds a Show / Hide Tab menu item to the View menu.

View menu item

He does it dynamically.

My application already has its own tab bar using the MMTabBarView library . I would prefer to continue using this library as it gives me backward compatibility with tabs as well as the ability to make some settings for tabs.

I see nothing in apples of NSDocument or NSDocumentController when deleting this menu item.

Does anyone have any suggestions as to how I can remove it?

NOTE. I do not want to just turn it off, I want to completely remove it. (Or, I think, it was not added in the first place).

+4
source share
1 answer

In the Builder interface, open the attributes of your NSWindow, and you will see the "Tab mode" option. Set it to the Forbidden position.

+6
source

Source: https://habr.com/ru/post/1660298/


All Articles