#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
- Create a NSButton instance in interface builder.
- Set the class of the NSButton to KBButton
Changing the Color programatically
- Connect NSButton to IBOutlet through Interface Builder
- 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.