Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove 'Show/Hide tab bar' menu item

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

View menu item

It does this dynamically.

My application already includes its own tab bar using the MMTabBarView library. I would prefer to continue using this library as it gives me backwards compatibility with tabs, plus the ability to do some customization to tabs.

I'm not seeing anything in apples NSDocument or NSDocumentController documentation on removing this menu item.

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

NOTE: I do not want to simply disable it, I am looking to remove it completely. (Or I guess not have it added in the first place).

like image 250
Kyle Avatar asked Nov 09 '16 14:11

Kyle


People also ask

How do I hide and show tab bar in Swift?

If you don't want that behavior, you should set hidesBottomBarWhenPushed to true where applicable. This will hide the tab bar along with any toolbars you had showing, but only when a view controller is pushed onto the navigation stack. This allows you to show the tab bar at first, then hide it when you need more room.

Why can't I hide tab bar in Safari?

Do you currently have multiple tabs open in Safari? If so, that would be why the option is unavailable/grayed out. You'd want to close out additional tabs so you only have one tab open in Safari, and then you should be able to select the Hide Tab Bar option in the View menu. Cheers!

How do I hide the tab bar on a Mac?

Hide or Show the Tab Bar If you open a webpage in a new tab, Safari will automatically show the tab bar. If you want the tab bar always to be visible, even if you only have a single web page open, select View > Show Tab Bar. To hide the tab bar, select View > Hide Tab Bar.


1 Answers

In Interface Builder, open the attributes of your NSWindow and you'll see an option called "Tabbing Mode". Set it to Disallowed.

like image 96
ian Avatar answered Nov 09 '22 14:11

ian