Need guidance to reproduce these cocoa buttons

Discussion in 'Mac Programming' started by jeanlain, Dec 30, 2012.

  1. macrumors 6502a

    Mar 14, 2009
    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.

Share This Page