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
Post a Comment