tags:

views:

12

answers:

1

I am trying to develop a editor, for that i want to set color of button according to selected color from the color panel.button is NSToolBarItem...How can I do it???

A: 

Subclass NSBarButtonItem and override the drawRect method based on the currently selected color.

Cory Powers