I have a project that needs to disable/enable some NSToolbarItems depends on different options. I checked and found no parameter for this.
NSToolbarItem
Is there a wa
There is an easier solution :
-(BOOL)validateToolbarItem:(NSToolbarItem *)toolbarItem { return [toolbarItem isEnabled] ; }
that way you can use [yourToolBarItem setEnabled:YES/NO] ; in your code.