Once upon a time i navigated Yahoo Flickr, I saw this classical buttons style written by HTML & CSS, and I love them very much, so I spent several hours to write them out by Cocoa and Objective-C, I hope you love them too.
- Drag folder
Yahoo Classiscal Button
into your Xcode project. - Set NSButton's class to
YHButtonWhite
orYHButtonRed
in Interface Builder. - Set your button's siez in Interface Builder.
- Done.
If you like this chunk of code, please consider buying me a cup of tea.
Yahoo Flickr Buttons is licensed under MIT license.