Reputation: 209
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???
Upvotes: 0
Views: 522
Reputation: 1140
Subclass NSBarButtonItem and override the drawRect method based on the currently selected color.
Upvotes: 1