XCode 4 style tab views

We needed tab views that look and feel just like the ones in XCode 4. Our first attempt trying to override NSTabView’s styles failed. Instead, we found it easier to make NSTabView tabless and control it using a customized NSSegmentedControl. What’s nice is we can set it all up inside Interface Builder.


  • Open the nib file that will contain the tab view
  • Drag a NSTabView from the Object Library onto the stage
  • Change its class from NSTabView to WILLTabView
  • Add however many tab items you want and edit their labels to match up with an image filename

Check it out: