Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jeanlain

macrumors 68020
Original poster
Mar 14, 2009
2,430
933
Hello, I'd like to add buttons at the bottom of an NSTableView to reproduce those frequently seen in Apple apps, like for instance the + and - buttons of the users and groups settings (system prefs).
These are not simple gradient buttons (the disable state looks different for once). It looks like Apple has placed buttons or cells into some gradient view.
I have reproduced a similar gradient in an NSView that I placed at the bottom of the table view. From this I'm not sure how to proceed. I can put buttons in that view but they won't look the way I want.
Should I place buttons in this gradient view, or just cells? Should I subclass NSCell to customize their look, or NSButton? Or should the "gradient" be an NSButton subclass with a gradient background and custom NSCell subclasses in it?
Thanks for your suggestions.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.