objective c - NSMenu click in OS X -


how can detect when menu in menu bar clicked? mean when whatever clicked example "file" menu not concrete position in menu.

i tried connect ibactions menu items in interface builder code, not work main menu item "file" submenus within menu

first of all, trying achieve in big picture? perhaps knowing when menu bar has been clicked not best approach.

you might able achieve you're interested in observing nsmenudidbegintrackingnotification notification, it's hard tell. example, fire keyboard-initiated tracking, too.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -