Skip to content
twitter button xcode project with demo
Find file


KBButton is a subclass of NSButton. It was adapted from to work under Cocoa on Mac OS X.


Start by dragging the KBButton folder into your Xcode project. Make sure you use the following settings:

  • Destination: [x] Copy items into destination group's folder (if needed)
  • Folders: (*) Create groups for any added folders
  • Add to targets: [x] your-xcode-project

  1. Create a NSButton instance in interface builder.
  2. Set the class of the NSButton to KBButton

Changing the Color programatically

  1. Connect NSButton to IBOutlet through Interface Builder
  2. call [[button cell] setKBButtonType:BButtonTypeDefault] in awakeFromNib. In the example this is done in KBAppDelegate.m


This library is licensed under the MIT license.


If you would like to contribute or could improve the code, please submit a pull request or issue.

Something went wrong with that request. Please try again.