O'Reilly logo

Learning Carbon by Apple Computer Inc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Menu Events

Menu events are generated when the user opens or closes a menu or when programmatic changes are made to the application (such as enabling a menu item).

Table C-4. Parameter Names and Types for Menu Event Kinds

Event kindParameter nameParameter type
kEventMenuBeginTracking kEventParamDirectObject typeMenuRef
  kEventParamCurrentMenuTrackingMode typeMenuTrackingMode
kEventMenuEndTracking kEventParamDirectObject typeMenuRef
kEventMenuOpening kEventParamDirectObject typeMenuRef
  kEventParamMenuFirstOpen typeBoolean
kEventMenuClosed kEventParamDirectObject typeMenuRef
kEventMenuTargetItem kEventParamDirectObject typeMenuRef
  kEventParamMenuItemIndex typeMenuItemIndex
  kEventParamMenuCommand typeMenuCommand
kEventMenuMatchKey kEventParamDirectObject typeMenuRef
  kEventParamEventRef typeEventRef
  kEventParamMenuEventOptions typeMenuEventOptions
  kEventParamMenuItemIndex typeMenuItemIndex
kEventMenuEnableItems kEventParamDirectObject typeMenuRef
  kEventParamEnableMenuForKeyEvent typeBoolean

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required