Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

XCode 4.x like inspector segmented control

branch: master

Merge pull request #5 from mz2/master

Make the tab bar background drawing and border drawing optional
latest commit 0146f4b59b
Daniele Margutti authored February 15, 2013
Octocat-spinner-32 DMTabBar Only draw the gradient bar if a color is set for it. Only draw the bo… January 23, 2013
Octocat-spinner-32 .gitignore Added some Xcode user data to .gitignore December 23, 2012
Octocat-spinner-32 Updated README file July 02, 2012


DMTabBar is a XCode 4.x like segmented control. It's emulate the behavior of the segmented control used inside XCode's Inspector Window.

Daniele Margutti,

DMTabBar Example Project

How to get started

It's very simple to use:

  • make your DMTabBar class via code (it's an NSView subclass) or via IB
  • create an NSArray of DMTabBarItems elements and assign it to DMTabBar tabBarItems property. Each item is a button and can have several attributes (you can simply set the NSImage's icon property)
  • handle selection changes using - (void) handleTabBarItemSelection:(DMTabBarEventsHandler) selectionHandler; method.

It uses ARC and blocks so you it should be compatible with MacOS X 10.6 or later.

Change log

June 19, 2012

  • First version


If you found this project useful, please donate. There’s no expected amount and I don’t require you to.

Something went wrong with that request. Please try again.