Mac Developer Library

Developer

AXActionConstants.h Reference

Options
Deployment Target:

On This Page

AXActionConstants.h Reference

Many UIElements have a set of actions that they can perform. Actions are designed to be simple. Actions roughly correspond to things you could do with a single click of the mouse on the UIElement. Buttons and menu items, for example, have a single action: push or pick, respectively. A scroll bar has several actions: page up, page down, up one line, down one line.

Constants

See the Overview section above for header-level documentation.

  • Declaration

    Objective-C

    #define kAXCancelAction CFSTR("AXCancel") #define kAXConfirmAction CFSTR("AXConfirm") #define kAXDecrementAction CFSTR("AXDecrement") #define kAXIncrementAction CFSTR("AXIncrement") #define kAXPickAction CFSTR("AXPick") #define kAXPressAction CFSTR("AXPress") #define kAXRaiseAction CFSTR("AXRaise") #define kAXShowAlternateUIAction CFSTR("AXShowAlternateUI") #define kAXShowDefaultUIAction CFSTR("AXShowDefaultUI") #define kAXShowMenuAction CFSTR("AXShowMenu")

    Constants

    • kAXCancelAction

      kAXCancelAction

      Simulate a Cancel action, such as hitting the Cancel button.

      Available in OS X v10.2 and later.

    • kAXConfirmAction

      kAXConfirmAction

      Simulate pressing Return in the UIElement, such as a text field.

      Available in OS X v10.2 and later.

    • kAXDecrementAction

      kAXDecrementAction

      Decrement the value of the UIElement.

      Available in OS X v10.2 and later.

    • kAXIncrementAction

      kAXIncrementAction

      Increment the value of the UIElement.

      Available in OS X v10.2 and later.

    • kAXPickAction

      kAXPickAction

      Select the UIElement, such as a menu item.

      Available in OS X v10.2 and later.

    • kAXPressAction

      kAXPressAction

      Simulate clicking the UIElement, such as a button.

      Available in OS X v10.2 and later.

    • kAXRaiseAction

      kAXRaiseAction

      Available in OS X v10.3 and later.

    • kAXShowAlternateUIAction

      kAXShowAlternateUIAction

      Show alternate or hidden UI. This is often used to trigger the same change that would occur on a mouse hover.

      Available in OS X v10.9 and later.

    • kAXShowDefaultUIAction

      kAXShowDefaultUIAction

      Show default UI. This is often used to trigger the same change that would occur when a mouse hover ends.

      Available in OS X v10.9 and later.

    • kAXShowMenuAction

      kAXShowMenuAction

      Available in OS X v10.4 and later.

    Import Statement