Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.05 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.05 KB

#KBButton

KBButton is a subclass of NSButton. It was adapted from http://github.com/mattlawer/BButton to work under Cocoa on Mac OS X.

Usage

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

License

This library is licensed under the MIT license.

Contributing

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