Mac OS X 10.10.4: NSTabViewController tabStyle option NSTabViewControllerTabStyleUnspecified does not work.

Originator:kelifancher
Number:rdar://22093439 Date Originated:2015/07/31
Status:Open Resolved:
Product:OS X Product Version:10.10.10
Classification:Bug Reproducible:Always
 
Summary:
The documentation for [NSTabViewController tabStyle] lists four possible enum values, the last one being NSTabViewControllerTabStyleUnspecified which the description ‘A style that indicates the the tab view controller does not provide the tab selection UI. Your app provides the control (such as an NSSegmentedControl or NSPopUpButton) for navigating between tabs. You can bind an existing control to the tab view controller object so that interactions with the control automatically change tabs.’

When I change this to the Unspecified style in code IB the end result still displays the NSSegmentedControl in a similar way to .TabsOnTop but not exactly the same.

If I change the tabStyle programmatically in viewDidLoad then this bug is not exhibited

Steps to Reproduce:
1.) Add a new NSTabViewController to your layout in a storyboard.
2.) Change the Tab View Controller ‘Style’ property to ‘Unspecified’.
3.) Run the app.

Expected Results:
At this point you should not see the NSSegmented Control.

Actual Results:
You do see the NSSegmentedControl.


Notes:
The provided attachment is a very simple project demonstrating this problem. If you uncomment the line in ‘TestTabViewController’ you will see it work as I would expect from IB.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!