Richa Vijayvargiya
Richa Vijayvargiya

Reputation: 209

how can I change color of a NSToolBarItem?

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

Answers (1)

Cory Powers
Cory Powers

Reputation: 1140

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

Upvotes: 1

Related Questions