objective c - Disabling a NSToolbarItem triggering a segue -


i have nstoolbar many nstoolbaritems, of them connected methods , couple of them directly trigger segue (one sheet segue , other show segue).

i have implemented:

-(bool)validatetoolbaritem:(nstoolbaritem *)toolbaritem { ... } 

to enable/disable buttons need. unfortunately, method never called 2 nstoolbaritems trigger segue.

all nstoolbaritems have autovalidates @ no.

what missing?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -