14

Does anybody know how to hide the tabbar within a NSTabView? There are just iOS versions out there but I need a solution for OSX.

Here is my storyboard:

enter image description here

I want to hide the tabbar… Where do I have to do it and how do I have to do it?

Andriy
  • 2,767
  • 2
  • 21
  • 29
Tom el Safadi
  • 6,164
  • 5
  • 49
  • 102
  • 1
    set NSTabView's tabViewType property to one of the NSNoTabs enum type. In IB it should be under the 'Style' drop down menu. – rocky May 13 '16 at 22:52
  • 1
    @rocky That's not sufficient because he's using an `NSTabViewController`. – rob mayoff May 14 '16 at 04:25

1 Answers1

40

You're using an NSTabViewController. You need to make two changes in your storyboard.

First, select the tab view controller and set its Style to “Unspecified”:

tab view controller style

Next, select the tab view under the tab view controller (it'll probably be named “Top Tab View”) and set its Style to “Tabless”:

tab view style

rob mayoff
  • 375,296
  • 67
  • 796
  • 848