Skip to content

kwbock/KBButton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

About

twitter button xcode project with demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published