tags:

views:

69

answers:

2

i have created one aplication in which i have implemented custom toolbar and i have put custom item in that tool bar but i cant able to click on that.its show its disable.how to solve this problem.

A: 

Implement the NSToolbarItemValidation protocol in your NSToolbar's delegate, and return NO for every NSToolbarItem that you want disabled (return YES to enable it).

Dave DeLong
A: 

If toolbar buttons are disabled by default and you haven't implemented NSToolbarItemValidation, it's usually because you have forgotten to connect the buttons to IBActions, or you have but you haven't implemented the actions.

JeremyP