Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
twitter button xcode project with demo
Objective-C
branch: master

README.md

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.

Something went wrong with that request. Please try again.