Lupurus
Lupurus

Reputation: 4209

Send action from custom View in NSToolbarItem

I created a Custom View as a Toolbar Item. Creating an action from the Toolbar item now doesn't work (it's not fired). Any ideas?

Upvotes: 0

Views: 441

Answers (1)

Taylor
Taylor

Reputation: 3231

The action of an NSToolbarItem is only used if you leave the default view in place. Setting a custom view will mean that you need to setup any target/action/callbacks with that custom view instead: e.g. if you set a custom button or segmented control, you should set the target and action on that.

Upvotes: 0

Related Questions