Mac Developer Library

Developer

AppKit Framework Reference NSAccessibility Informal Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSAccessibility

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import AppKit

Objective-C

@import AppKit;

Availability


Available in OS X v10.2 and later.

The NSAccessibility informal protocol defines an old, key-based API. For the most part, the use of this API is discouraged. Use the new, method-based API instead. However, there are a few methods and properties that are still relevant. You can combine the accessibilityHitTest: method and the accessibilityFocusedUIElement and accessibilityNotifiesWhenDestroyed properties with the new NSAccessibility protocol. For more information on the new, method-based API see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

  • The deepest descendant of the accessibility hierarchy that has the focus. (read-only)

    Declaration

    Swift

    var accessibilityFocusedUIElement: AnyObject? { get }

    Objective-C

    @property(readonly, strong) id accessibilityFocusedUIElement

    Discussion

    You can assume that the search for the focus has already been narrowed down to the accessibility element. Override this method to do deeper searching by identifying which child element, if any, may have the focus. If a child element does not have the focus, either return self or, if available, invoke the superclass's implementation. The default NSView and NSCell implementations test whether the accessibility element is an ignored element and, if so, return the element’s first unignored parent; otherwise they return self

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.2 and later.

  • Returns the deepest descendant of the accessibility hierarchy that contains the specified point.

    Declaration

    Swift

    func accessibilityHitTest(_ point: NSPoint) -> AnyObject?

    Objective-C

    - (id)accessibilityHitTest:(NSPoint)point

    Parameters

    point

    The point being hit-tested, in lower-left relative screen coordinates.

    Return Value

    The deepest accessibility element in the accessibility hierarchy that contains the specified point.

    Discussion

    You can assume that the specified point has already been determined to lie within the accessibility element's frame. Override this method to do deeper hit-testing by identifying which child element, if any, contains the point. NSMatrix, for example, identifies which of its cells contains the point and propagates the hit-test to it.

    If the specified point is not contained within one of the accessibility element's children, either return self or, if available, invoke the superclass's implementation. The default NSView and NSCell implementations test whether the accessibility element is an ignored element and, if it is, return the receiver's first unignored parent; otherwise they return self.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.2 and later.

  • A Boolean value that indicates whether a custom accessibility object sends a notification when its corresponding UI element is destroyed. (read-only)

    Declaration

    Swift

    var accessibilityNotifiesWhenDestroyed: Bool { get }

    Objective-C

    @property(readonly) BOOL accessibilityNotifiesWhenDestroyed

    Discussion

    In OS X 10.9 and later, a custom accessibility object that is an NSObject subclass can post accessibility notifications if it meets the following criteria:

    • The lifetime of the custom accessibility object must match the lifetime of the corresponding element in the app's UI.

      Typically, a custom accessibility object that acts as a proxy for an onscreen UI element gets autoreleased and deallocated immediately after the app responds to an accessibility request. Such an object can’t post accessibility notifications, because all registered observers get removed as soon as the object is deallocated. To correct this, an app must guarantee that a custom accessibility object remains allocated for as long as its corresponding UI element remains visible.

    • The object must post the NSAccessibilityUIElementDestroyedNotification notification at the appropriate time. The appropriate time is most likely to be when the corresponding UI element is removed from the screen, but it can also be when the object itself is deallocated.

    • The object must implement accessibilityNotifiesWhenDestroyed and return YEStrue.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.9 and later.

  • Returns a localized description of the specified action.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityActionDescription(_ action: String) -> String?

    Objective-C

    - (NSString *)accessibilityActionDescription:(NSString *)action

    Parameters

    action

    The action attribute.

    Return Value

    The description of the specified action, in a localized string.

    Discussion

    User interface classes must implement this method to return descriptions for all actions returned from accessibilityActionNames. A button, for example, might return the string "press” for the NSAccessibilityPressAction action. Subclasses should invoke the superclass's implementation, if it exists, to obtain the descriptions of any inherited actions.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Returns an array of action names supported by the accessibility element.

    Deprecation Statement

    Use of this method is discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityActionNames() -> [AnyObject]

    Objective-C

    - (NSArray *)accessibilityActionNames

    Return Value

    An array of action names.

    Discussion

    User interface classes must implement this method. Subclasses should invoke the superclass's implementation, if it exists, and append additional action names or remove unsupported actions. See Constants for some common action names.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Returns the count of the specified accessibility array attribute.

    Use of this method is discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityArrayAttributeCount(_ attribute: String) -> Int

    Objective-C

    - (NSUInteger)accessibilityArrayAttributeCount:(NSString *)attribute

    Parameters

    attribute

    The accessibility array attribute.

    Return Value

    The number of items in the specified array attribute.

    Discussion

    If attribute is not an array, an exception is raised.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.6 and later.

  • Returns a subarray of values of an accessibility array attribute.

    Use of this method is discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityArrayAttributeValues(_ attribute: String, index index: Int, maxCount maxCount: Int) -> [AnyObject]

    Objective-C

    - (NSArray *)accessibilityArrayAttributeValues:(NSString *)attribute index:(NSUInteger)index maxCount:(NSUInteger)maxCount

    Parameters

    attribute

    The accessibility array attribute.

    index

    The starting index.

    maxCount

    The maximum desired number of items requested.

    Return Value

    An array of values within the specified index and count.

    Discussion

    Note that this method does not take a range. The maximum count is the maximum desired number of items requested by an accessibility client. This number may be beyond the bounds of your array.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.6 and later.

  • Returns an array of attribute names supported by the receiver.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityAttributeNames() -> [AnyObject]

    Objective-C

    - (NSArray *)accessibilityAttributeNames

    Return Value

    An array containing the attributes supported by the receiver.

    Discussion

    User interface classes must implement this method. Subclasses should invoke the superclass's implementation, if it exists, and append additional attributes or remove unsupported attributes. See Constants for lists of attribute names.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Returns the value of the specified attribute in the receiver.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityAttributeValue(_ attribute: String) -> AnyObject?

    Objective-C

    - (id)accessibilityAttributeValue:(NSString *)attribute

    Parameters

    attribute

    The name of the attribute. See Constants for lists of attribute names.

    Discussion

    User interface classes must implement this method. Subclasses should invoke the superclass's implementation, if it exists, if attribute is not implemented in the subclass.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Returns the value of the receiver's parameterized attribute corresponding to the specified attribute name and parameter.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityAttributeValue(_ attribute: String, forParameter parameter: AnyObject?) -> AnyObject?

    Objective-C

    - (id)accessibilityAttributeValue:(NSString *)attribute forParameter:(id)parameter

    Parameters

    attribute

    The name of the attribute. See Constants for lists of attribute names.

    parameter

    The parameter.

    Discussion

    If you implement this method, also implement accessibilityParameterizedAttributeNames.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Returns the index of the specified accessibility child in the parent.

    Use of this method is discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityIndexOfChild(_ child: AnyObject) -> Int

    Objective-C

    - (NSUInteger)accessibilityIndexOfChild:(id)child

    Parameters

    child

    The accessibility child of an object.

    Return Value

    The index of the accessibility child object in the parent. Returns NSNotFound if the child does not exist.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.6 and later.

  • Returns a Boolean value that indicates whether the value for the specified attribute in the receiver can be set.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityIsAttributeSettable(_ attribute: String) -> Bool

    Objective-C

    - (BOOL)accessibilityIsAttributeSettable:(NSString *)attribute

    Parameters

    attribute

    The name of the attribute. See Constants for lists of attribute names.

    Return Value

    YEStrue if the specified attribute can be set; otherwise, NOfalse.

    Discussion

    User interface classes must implement this method. Subclasses should invoke the superclass's implementation, if it exists, if attribute is not implemented in the subclass.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Returns a Boolean value indicating whether the receiver should be ignored in the parent-child accessibility hierarchy.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityIsIgnored() -> Bool

    Objective-C

    - (BOOL)accessibilityIsIgnored

    Return Value

    YEStrue if the receiver should be ignored; otherwise, NOfalse.

    Discussion

    When asking for an object's children, do not include ignored children; instead, replace the ignored children with their own unignored children. The same applies when asking for an object's parent: skip the ignored parent and treat the first unignored ancestor as the real parent. Likewise, when a hit-test or focus test is satisfied by an ignored element, use the element's first unignored ancestor (or descendant in certain cases, such as single-celled controls) instead.

    Ignored elements let you provide a simplified version of the view and object ownership hierarchies. Accessibility clients can bypass intermediate objects, letting users access the real user interface objects more quickly. For example, NSControl objects are ignored when they are single-celled; the visible parent-child relationship is between the control's parent (or a higher ancestor if the parent is ignored, too) and the control's cell.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Returns a list of parameterized attribute names supported by the receiver.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityParameterizedAttributeNames() -> [AnyObject]

    Objective-C

    - (NSArray *)accessibilityParameterizedAttributeNames

    Return Value

    An array of parameterized attributes in the receiver.

    Discussion

    If you implement this method, also implement accessibilityAttributeValue:forParameter:.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Performs the action associated with the specified action.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilityPerformAction(_ action: String)

    Objective-C

    - (void)accessibilityPerformAction:(NSString *)action

    Parameters

    action

    The action to perform.

    Discussion

    User interface classes must implement this method to handle all the actions returned from accessibilityActionNames. Subclasses should invoke the superclass's implementation, if it exists, if action is not implemented in the subclass.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Overrides the specified attribute in the receiver or adds it if it does not exist, and sets its value to the specified value.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilitySetOverrideValue(_ value: AnyObject?, forAttribute attribute: String) -> Bool

    Objective-C

    - (BOOL)accessibilitySetOverrideValue:(id)value forAttribute:(NSString *)attribute

    Parameters

    value

    The attribute value to be set.

    attribute

    The name of the attribute. See Constants for lists of attribute names.

    Return Value

    YEStrue if the override was successful; otherwise, NOfalse.

    Discussion

    This method is for changing the set of attributes on an instance, as an alternative to subclassing.

    This method works only on objects whose class already implements the NSAccessibility protocol. If the specified attribute is already supported by the object, the value specified by this method wins.

    If the specified attribute does not exist, it is created outside the NSAccessibility protocol, so accessibilityAttributeNames still returns the old list, which does not contain the new attribute. Likewise, accessibilityAttributeValue does not return attributes created by the override process nor does it return their overridden values.

    The values of overridden attributes are not settable by accessibility clients.

    If you need to undo the effect of using this method, call it again, passing nil for the value.

    Ensure that you invoke this method on the actual object that represents the user interface element. For example, for NSButton, use the underlying NSButtonCell object. NSButton itself is ignored by accessibility.

    This method works only on an object representing a single user interface element. So, for example, you cannot use it when a single object represents multiple user interface elements, as with NSSegmentedCell, which has only a single object but provides user interface elements for each segment.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Sets the value of the specified attribute in the receiver to the specified value.

    Deprecation Statement

    This method is deprecated. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    func accessibilitySetValue(_ value: AnyObject?, forAttribute attribute: String)

    Objective-C

    - (void)accessibilitySetValue:(id)value forAttribute:(NSString *)attribute

    Parameters

    value

    The attribute value to be set.

    attribute

    The name of the attribute. See Constants for lists of attribute names.

    Discussion

    User interface classes must implement this method if any of its attributes are settable. Subclasses should invoke the superclass's implementation, if it exists, if attribute is not implemented in the subclass.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.1 and later.

    Deprecated in OS X v10.10.

  • Standard attributes that can be adopted by any accessibility object.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityChildrenAttribute: String let NSAccessibilityContentsAttribute: String let NSAccessibilityDescriptionAttribute: String let NSAccessibilityEnabledAttribute: String let NSAccessibilityFocusedAttribute: String let NSAccessibilityHelpAttribute: String let NSAccessibilityMaxValueAttribute: String let NSAccessibilityMinValueAttribute: String let NSAccessibilityParentAttribute: String let NSAccessibilityPositionAttribute: String let NSAccessibilityRoleAttribute: String let NSAccessibilityRoleDescriptionAttribute: String let NSAccessibilitySelectedChildrenAttribute: String let NSAccessibilityShownMenuAttribute: String let NSAccessibilitySizeAttribute: String let NSAccessibilitySubroleAttribute: String let NSAccessibilityTitleAttribute: String let NSAccessibilityTopLevelUIElementAttribute: String let NSAccessibilityValueAttribute: String let NSAccessibilityValueDescriptionAttribute: String let NSAccessibilityVisibleChildrenAttribute: String let NSAccessibilityWindowAttribute: String

    Objective-C

    NSString *const NSAccessibilityChildrenAttribute; NSString *const NSAccessibilityContentsAttribute; NSString *const NSAccessibilityDescriptionAttribute; NSString *const NSAccessibilityEnabledAttribute; NSString *const NSAccessibilityFocusedAttribute; NSString *const NSAccessibilityHelpAttribute; NSString *const NSAccessibilityMaxValueAttribute; NSString *const NSAccessibilityMinValueAttribute; NSString *const NSAccessibilityParentAttribute; NSString *const NSAccessibilityPositionAttribute; NSString *const NSAccessibilityRoleAttribute; NSString *const NSAccessibilityRoleDescriptionAttribute; NSString *const NSAccessibilitySelectedChildrenAttribute; NSString *const NSAccessibilityShownMenuAttribute; NSString *const NSAccessibilitySizeAttribute; NSString *const NSAccessibilitySubroleAttribute; NSString *const NSAccessibilityTitleAttribute; NSString *const NSAccessibilityTopLevelUIElementAttribute; NSString *const NSAccessibilityValueAttribute; NSString *const NSAccessibilityValueDescriptionAttribute; NSString *const NSAccessibilityVisibleChildrenAttribute; NSString *const NSAccessibilityWindowAttribute;

    Constants

    • NSAccessibilityChildrenAttribute

      NSAccessibilityChildrenAttribute

      The element's child elements in the accessibility hierarchy (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityContentsAttribute

      NSAccessibilityContentsAttribute

      Elements that represent the contents in the current element, such as the document view of a scroll view (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityDescriptionAttribute

      NSAccessibilityDescriptionAttribute

      The purpose of the element, not including the role (NSString).

      Available in OS X v10.4 and later.

    • NSAccessibilityEnabledAttribute

      NSAccessibilityEnabledAttribute

      A flag that indicates the enabled state of the element (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityFocusedAttribute

      NSAccessibilityFocusedAttribute

      A flag that indicates the presence of keyboard focus (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityHelpAttribute

      NSAccessibilityHelpAttribute

      The help text for the element (NSString).

      Available in OS X v10.2 and later.

    • NSAccessibilityMaxValueAttribute

      NSAccessibilityMaxValueAttribute

      The element's maximum value (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityMinValueAttribute

      NSAccessibilityMinValueAttribute

      The element's minimum value (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityParentAttribute

      NSAccessibilityParentAttribute

      The element's parent element in the accessibility hierarchy (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityPositionAttribute

      NSAccessibilityPositionAttribute

      The position in points of the element's lower-left corner in screen-relative coordinates (NSValue).

      Available in OS X v10.2 and later.

    • NSAccessibilityRoleAttribute

      NSAccessibilityRoleAttribute

      The element's type, such as NSAccessibilityRadioButtonRole (NSString). See Roles for a list of available roles.

      Available in OS X v10.2 and later.

    • NSAccessibilityRoleDescriptionAttribute

      NSAccessibilityRoleDescriptionAttribute

      A localized, human-intelligible description of the element's role, such as radio button (NSString).

      Available in OS X v10.2 and later.

    • NSAccessibilitySelectedChildrenAttribute

      NSAccessibilitySelectedChildrenAttribute

      The currently selected children of the element (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityShownMenuAttribute

      NSAccessibilityShownMenuAttribute

      The menu currently being displayed (id).

      Available in OS X v10.4 and later.

    • NSAccessibilitySizeAttribute

      NSAccessibilitySizeAttribute

      The element's size in points (NSValue).

      Available in OS X v10.2 and later.

    • NSAccessibilitySubroleAttribute

      NSAccessibilitySubroleAttribute

      The element's subrole, such as NSAccessibilityTableRowSubrole (NSString). See Subroles for a list of available subroles.

      Available in OS X v10.2 and later.

    • NSAccessibilityTitleAttribute

      NSAccessibilityTitleAttribute

      The title of the element, such as a button's visible text (NSString).

      Available in OS X v10.2 and later.

    • NSAccessibilityTopLevelUIElementAttribute

      NSAccessibilityTopLevelUIElementAttribute

      The top-level element that contains this element (id).

      Available in OS X v10.4 and later.

    • NSAccessibilityValueAttribute

      NSAccessibilityValueAttribute

      The element's value (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityValueDescriptionAttribute

      NSAccessibilityValueDescriptionAttribute

      The description of the element's value (NSString).

      Available in OS X v10.5 and later.

    • NSAccessibilityVisibleChildrenAttribute

      NSAccessibilityVisibleChildrenAttribute

      The element's child elements that are visible (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowAttribute

      NSAccessibilityWindowAttribute

      The window containing the current element (id).

      Available in OS X v10.2 and later.

  • Attributes that are specific to text.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityInsertionPointLineNumberAttribute: String let NSAccessibilityNumberOfCharactersAttribute: String let NSAccessibilitySelectedTextAttribute: String let NSAccessibilitySelectedTextRangeAttribute: String let NSAccessibilitySelectedTextRangesAttribute: String let NSAccessibilitySharedCharacterRangeAttribute: String let NSAccessibilitySharedTextUIElementsAttribute: String let NSAccessibilityVisibleCharacterRangeAttribute: String

    Objective-C

    NSString *const NSAccessibilityInsertionPointLineNumberAttribute; NSString *const NSAccessibilityNumberOfCharactersAttribute; NSString *const NSAccessibilitySelectedTextAttribute; NSString *const NSAccessibilitySelectedTextRangeAttribute; NSString *const NSAccessibilitySelectedTextRangesAttribute; NSString *const NSAccessibilitySharedCharacterRangeAttribute; NSString *const NSAccessibilitySharedTextUIElementsAttribute; NSString *const NSAccessibilityVisibleCharacterRangeAttribute;

    Constants

    • NSAccessibilityInsertionPointLineNumberAttribute

      NSAccessibilityInsertionPointLineNumberAttribute

      The line number containing the insertion point (NSNumber).

      Available in OS X v10.4 and later.

    • NSAccessibilityNumberOfCharactersAttribute

      NSAccessibilityNumberOfCharactersAttribute

      The number of characters in the text (NSNumber).

      Available in OS X v10.3 and later.

    • NSAccessibilitySelectedTextAttribute

      NSAccessibilitySelectedTextAttribute

      The currently selected text (NSString).

      Available in OS X v10.2 and later.

    • NSAccessibilitySelectedTextRangeAttribute

      NSAccessibilitySelectedTextRangeAttribute

      The range of selected text (NSValue).

      Available in OS X v10.2 and later.

    • NSAccessibilitySelectedTextRangesAttribute

      NSAccessibilitySelectedTextRangesAttribute

      An array of NSValue (rangeValue) ranges of selected text (NSArray).

      Available in OS X v10.5 and later.

    • NSAccessibilitySharedCharacterRangeAttribute

      NSAccessibilitySharedCharacterRangeAttribute

      The (rangeValue) part of shared text in this view (NSValue).

      Available in OS X v10.4 and later.

    • NSAccessibilitySharedTextUIElementsAttribute

      NSAccessibilitySharedTextUIElementsAttribute

      The elements with which the text of this element is shared (NSArray).

      Available in OS X v10.4 and later.

    • NSAccessibilityVisibleCharacterRangeAttribute

      NSAccessibilityVisibleCharacterRangeAttribute

      The range of visible text (NSValue).

      Returns ranges for entire lines. For example, characters that are horizontally clipped will be reported in the visible range.

      Available in OS X v10.3 and later.

  • Parameterized attributes specific to text.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityLineForIndexParameterizedAttribute: String let NSAccessibilityRangeForLineParameterizedAttribute: String let NSAccessibilityStringForRangeParameterizedAttribute: String let NSAccessibilityRangeForPositionParameterizedAttribute: String let NSAccessibilityRangeForIndexParameterizedAttribute: String let NSAccessibilityBoundsForRangeParameterizedAttribute: String let NSAccessibilityRTFForRangeParameterizedAttribute: String let NSAccessibilityStyleRangeForIndexParameterizedAttribute: String let NSAccessibilityAttributedStringForRangeParameterizedAttribute: String

    Objective-C

    NSString *const NSAccessibilityAttributedStringForRangeParameterizedAttribute; NSString *const NSAccessibilityBoundsForRangeParameterizedAttribute; NSString *const NSAccessibilityLineForIndexParameterizedAttribute; NSString *const NSAccessibilityRTFForRangeParameterizedAttribute; NSString *const NSAccessibilityRangeForIndexParameterizedAttribute; NSString *const NSAccessibilityRangeForLineParameterizedAttribute; NSString *const NSAccessibilityRangeForPositionParameterizedAttribute; NSString *const NSAccessibilityStringForRangeParameterizedAttribute; NSString *const NSAccessibilityStyleRangeForIndexParameterizedAttribute;

    Constants

    • NSAccessibilityLineForIndexParameterizedAttribute

      NSAccessibilityLineForIndexParameterizedAttribute

      The line number (NSNumber) of the specified character (NSNumber).

      Available in OS X v10.3 and later.

    • NSAccessibilityRangeForLineParameterizedAttribute

      NSAccessibilityRangeForLineParameterizedAttribute

      The range of characters (NSValue containing an NSRange value) corresponding to the specified line number (NSNumber).

      Available in OS X v10.3 and later.

    • NSAccessibilityStringForRangeParameterizedAttribute

      NSAccessibilityStringForRangeParameterizedAttribute

      The substring (NSString) specified by the range (NSValue containing an NSRange value).

      Available in OS X v10.3 and later.

    • NSAccessibilityRangeForPositionParameterizedAttribute

      NSAccessibilityRangeForPositionParameterizedAttribute

      The range of characters (NSValue containing an NSRange value) composing the glyph at the specified point (NSValue containing an NSPoint value).

      Available in OS X v10.3 and later.

    • NSAccessibilityRangeForIndexParameterizedAttribute

      NSAccessibilityRangeForIndexParameterizedAttribute

      The full range of characters (NSValue containing an NSRange value), including the specified character, which compose a single glyph (NSNumber).

      Available in OS X v10.3 and later.

    • NSAccessibilityBoundsForRangeParameterizedAttribute

      NSAccessibilityBoundsForRangeParameterizedAttribute

      The rectangle (NSValue containing an NSRect value) enclosing the specified range of characters (NSValue containing an NSRange value). If the range crosses a line boundary, the returned rectangle will fully enclose all the lines of characters.

      Available in OS X v10.3 and later.

    • NSAccessibilityRTFForRangeParameterizedAttribute

      NSAccessibilityRTFForRangeParameterizedAttribute

      The RTF data (NSData) describing the specified range of characters (NSValue containing an NSRange value).

      Available in OS X v10.3 and later.

    • NSAccessibilityStyleRangeForIndexParameterizedAttribute

      NSAccessibilityStyleRangeForIndexParameterizedAttribute

      The full range of characters (NSValue containing an NSRange value), including the specified character (NSNumber), which have the same style.

      Available in OS X v10.3 and later.

    • NSAccessibilityAttributedStringForRangeParameterizedAttribute

      NSAccessibilityAttributedStringForRangeParameterizedAttribute

      Does not use attributes from Appkit/AttributedString.h (NSAttributedString).

      Available in OS X v10.4 and later.

  • Attributes and key constants used with attributed strings.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityAttachmentTextAttribute: String let NSAccessibilityAutocorrectedTextAttribute: String let NSAccessibilityBackgroundColorTextAttribute: String let NSAccessibilityForegroundColorTextAttribute: String let NSAccessibilityUnderlineColorTextAttribute: String let NSAccessibilityStrikethroughColorTextAttribute: String let NSAccessibilityUnderlineTextAttribute: String let NSAccessibilitySuperscriptTextAttribute: String let NSAccessibilityStrikethroughTextAttribute: String let NSAccessibilityShadowTextAttribute: String let NSAccessibilityLinkTextAttribute: String let NSAccessibilityMarkedMisspelledTextAttribute: String let NSAccessibilityMisspelledTextAttribute: String let NSAccessibilityFontTextAttribute: String let NSAccessibilityFontNameKey: String let NSAccessibilityFontFamilyKey: String let NSAccessibilityVisibleNameKey: String let NSAccessibilityFontSizeKey: String

    Objective-C

    NSString *const NSAccessibilityAttachmentTextAttribute; NSString *const NSAccessibilityAutocorrectedTextAttribute; NSString *const NSAccessibilityBackgroundColorTextAttribute; NSString *const NSAccessibilityFontFamilyKey; NSString *const NSAccessibilityFontNameKey; NSString *const NSAccessibilityFontSizeKey; NSString *const NSAccessibilityFontTextAttribute; NSString *const NSAccessibilityForegroundColorTextAttribute; NSString *const NSAccessibilityLinkTextAttribute; NSString *const NSAccessibilityMarkedMisspelledTextAttribute; NSString *const NSAccessibilityMisspelledTextAttribute; NSString *const NSAccessibilityShadowTextAttribute; NSString *const NSAccessibilityStrikethroughColorTextAttribute; NSString *const NSAccessibilityStrikethroughTextAttribute; NSString *const NSAccessibilitySuperscriptTextAttribute; NSString *const NSAccessibilityUnderlineColorTextAttribute; NSString *const NSAccessibilityUnderlineTextAttribute; NSString *const NSAccessibilityVisibleNameKey;

    Constants

    • NSAccessibilityAttachmentTextAttribute

      NSAccessibilityAttachmentTextAttribute

      Text attachment (id).

      Available in OS X v10.4 and later.

    • NSAccessibilityAutocorrectedTextAttribute

      NSAccessibilityAutocorrectedTextAttribute

      Autocorrected text (NSNumber as a Boolean value).

      Available in OS X v10.7 and later.

    • NSAccessibilityBackgroundColorTextAttribute

      NSAccessibilityBackgroundColorTextAttribute

      Text background color (CGColorRef).

      Available in OS X v10.4 and later.

    • NSAccessibilityForegroundColorTextAttribute

      NSAccessibilityForegroundColorTextAttribute

      Text foreground color (CGColorRef).

      Available in OS X v10.4 and later.

    • NSAccessibilityUnderlineColorTextAttribute

      NSAccessibilityUnderlineColorTextAttribute

      Text underline color (CGColorRef).

      Available in OS X v10.4 and later.

    • NSAccessibilityStrikethroughColorTextAttribute

      NSAccessibilityStrikethroughColorTextAttribute

      Text strikethrough color (CGColorRef).

      Available in OS X v10.4 and later.

    • NSAccessibilityUnderlineTextAttribute

      NSAccessibilityUnderlineTextAttribute

      Text underline style (NSNumber).

      Available in OS X v10.4 and later.

    • NSAccessibilitySuperscriptTextAttribute

      NSAccessibilitySuperscriptTextAttribute

      Text superscript style (NSNumber). Values > 0 are superscript; values < 0 are subscript.

      Available in OS X v10.4 and later.

    • NSAccessibilityStrikethroughTextAttribute

      NSAccessibilityStrikethroughTextAttribute

      Text strikethrough (NSNumber as a Boolean value).

      Available in OS X v10.4 and later.

    • NSAccessibilityShadowTextAttribute

      NSAccessibilityShadowTextAttribute

      Text shadow (NSNumber as a Boolean value).

      Available in OS X v10.4 and later.

    • NSAccessibilityLinkTextAttribute

      NSAccessibilityLinkTextAttribute

      Text link (id).

      Available in OS X v10.4 and later.

    • NSAccessibilityMarkedMisspelledTextAttribute

      NSAccessibilityMarkedMisspelledTextAttribute

      Misspelled text that is visibly marked as misspelled (NSNumber as a Boolean value). If you’re implementing a custom text-editing app, use NSAccessibilityMarkedMisspelledTextAttribute to ensure that VoiceOver properly identifies misspelled text to users.

      Available in OS X v10.4 and later.

    • NSAccessibilityMisspelledTextAttribute

      NSAccessibilityMisspelledTextAttribute

      Misspelled text that isn’t necessarily visibly marked as misspelled (NSNumber as a Boolean value). Beginning in OS X v10.9, VoiceOver no longer checks for this attribute; instead, VoiceOver uses NSAccessibilityMarkedMisspelledTextAttribute.

      Available in OS X v10.4 and later.

    • NSAccessibilityFontTextAttribute

      NSAccessibilityFontTextAttribute

      Font keys (NSDictionary).

      Available in OS X v10.4 and later.

    • NSAccessibilityFontNameKey

      NSAccessibilityFontNameKey

      Required key for font name.

      Available in OS X v10.4 and later.

    • NSAccessibilityFontFamilyKey

      NSAccessibilityFontFamilyKey

      Optional key for font family.

      Available in OS X v10.4 and later.

    • NSAccessibilityVisibleNameKey

      NSAccessibilityVisibleNameKey

      Optional key for font visibility.

      Available in OS X v10.4 and later.

    • NSAccessibilityFontSizeKey

      NSAccessibilityFontSizeKey

      Required key for font size.

      Available in OS X v10.4 and later.

  • Attributes specific to windows.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityCloseButtonAttribute: String let NSAccessibilityGrowAreaAttribute: String let NSAccessibilityModalAttribute: String let NSAccessibilityDefaultButtonAttribute: String let NSAccessibilityCancelButtonAttribute: String let NSAccessibilityMainAttribute: String let NSAccessibilityMinimizeButtonAttribute: String let NSAccessibilityMinimizedAttribute: String let NSAccessibilityToolbarButtonAttribute: String let NSAccessibilityProxyAttribute: String let NSAccessibilityZoomButtonAttribute: String let NSAccessibilityFullScreenButtonAttribute: String

    Objective-C

    NSString *const NSAccessibilityCancelButtonAttribute; NSString *const NSAccessibilityCloseButtonAttribute; NSString *const NSAccessibilityDefaultButtonAttribute; NSString *const NSAccessibilityGrowAreaAttribute; NSString *const NSAccessibilityMainAttribute; NSString *const NSAccessibilityMinimizeButtonAttribute; NSString *const NSAccessibilityMinimizedAttribute; NSString *const NSAccessibilityModalAttribute; NSString *const NSAccessibilityProxyAttribute; NSString *const NSAccessibilityToolbarButtonAttribute; NSString *const NSAccessibilityZoomButtonAttribute; NSString *const NSAccessibilityFullScreenButtonAttribute;

    Constants

    • NSAccessibilityCloseButtonAttribute

      NSAccessibilityCloseButtonAttribute

      The element representing the close button (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityGrowAreaAttribute

      NSAccessibilityGrowAreaAttribute

      The element representing the grow area (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityModalAttribute

      NSAccessibilityModalAttribute

      A flag that indicates whether the window represented by this element is modal (NSNumber).

      Available in OS X v10.3 and later.

    • NSAccessibilityDefaultButtonAttribute

      NSAccessibilityDefaultButtonAttribute

      The element that represents the default button (id).

      Available in OS X v10.3 and later.

    • NSAccessibilityCancelButtonAttribute

      NSAccessibilityCancelButtonAttribute

      The element that represents the cancel button (id).

      Available in OS X v10.3 and later.

    • NSAccessibilityMainAttribute

      NSAccessibilityMainAttribute

      A flag that indicates whether the window is the main window (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityMinimizeButtonAttribute

      NSAccessibilityMinimizeButtonAttribute

      The element that represents the minimize button (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityMinimizedAttribute

      NSAccessibilityMinimizedAttribute

      A flag that indicates whether the window is minimized (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityToolbarButtonAttribute

      NSAccessibilityToolbarButtonAttribute

      The element that represents the toolbar button (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityProxyAttribute

      NSAccessibilityProxyAttribute

      The element that represents the window's proxy icon (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityZoomButtonAttribute

      NSAccessibilityZoomButtonAttribute

      The element that represents the zoom button (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityFullScreenButtonAttribute

      NSAccessibilityFullScreenButtonAttribute

      The element that represents the full-screen button (id).

      Available in OS X v10.7 and later.

  • Attributes that are specific to the app object.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityFocusedUIElementAttribute: String let NSAccessibilityFocusedWindowAttribute: String let NSAccessibilityFrontmostAttribute: String let NSAccessibilityHiddenAttribute: String let NSAccessibilityMainWindowAttribute: String let NSAccessibilityMenuBarAttribute: String let NSAccessibilityWindowsAttribute: String let NSAccessibilityExtrasMenuBarAttribute: String

    Objective-C

    NSString *const NSAccessibilityClearButtonAttribute; NSString *const NSAccessibilityColumnTitlesAttribute; NSString *const NSAccessibilityFocusedUIElementAttribute; NSString *const NSAccessibilityFocusedWindowAttribute; NSString *const NSAccessibilityFrontmostAttribute; NSString *const NSAccessibilityHiddenAttribute; NSString *const NSAccessibilityMainWindowAttribute; NSString *const NSAccessibilityMenuBarAttribute; NSString *const NSAccessibilityOrientationAttribute; NSString *const NSAccessibilitySearchButtonAttribute; NSString *const NSAccessibilitySearchMenuAttribute; NSString *const NSAccessibilityWindowsAttribute; NSString *const NSAccessibilityExtrasMenuBarAttribute;

    Constants

    • NSAccessibilityFocusedUIElementAttribute

      NSAccessibilityFocusedUIElementAttribute

      The element with the current focus (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityFocusedWindowAttribute

      NSAccessibilityFocusedWindowAttribute

      The app's window that has current focus (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityFrontmostAttribute

      NSAccessibilityFrontmostAttribute

      A flag that indicates whether the app is frontmost (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityHiddenAttribute

      NSAccessibilityHiddenAttribute

      A flag that indicates whether the app is hidden (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityMainWindowAttribute

      NSAccessibilityMainWindowAttribute

      The app's main window (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityMenuBarAttribute

      NSAccessibilityMenuBarAttribute

      The app's menu bar (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowsAttribute

      NSAccessibilityWindowsAttribute

      The app's windows (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityExtrasMenuBarAttribute

      NSAccessibilityExtrasMenuBarAttribute

      The app extras menu bar (id).

      Available in OS X v10.8 and later.

  • Attributes that are used with grid views, such as thumbnails and media browsers that present a grid of items. The children of a grid are ordered.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityColumnCountAttribute: String let NSAccessibilityOrderedByRowAttribute: String let NSAccessibilityRowCountAttribute: String

    Objective-C

    NSString *const NSAccessibilityColumnCountAttribute; NSString *const NSAccessibilityOrderedByRowAttribute; NSString *const NSAccessibilityRowCountAttribute;

    Constants

    • NSAccessibilityColumnCountAttribute

      NSAccessibilityColumnCountAttribute

      The number of columns in the grid (NSNumber as intValue).

      Available in OS X v10.5 and later.

    • NSAccessibilityOrderedByRowAttribute

      NSAccessibilityOrderedByRowAttribute

      A flag that indicates whether the grid is ordered row major (YEStrue), or column major (NOfalse) (NSNumber as boolValue).

      Available in OS X v10.5 and later.

    • NSAccessibilityRowCountAttribute

      NSAccessibilityRowCountAttribute

      The number of rows in the grid (NSNumber as intValue).

      Available in OS X v10.5 and later.

  • Attributes that are specific to tables and outlines.

    Declaration

    Swift

    let NSAccessibilityColumnHeaderUIElementsAttribute: String let NSAccessibilityColumnsAttribute: String let NSAccessibilityRowHeaderUIElementsAttribute: String let NSAccessibilityRowsAttribute: String let NSAccessibilitySelectedColumnsAttribute: String let NSAccessibilitySelectedRowsAttribute: String let NSAccessibilitySortDirectionAttribute: String let NSAccessibilityVisibleColumnsAttribute: String let NSAccessibilityVisibleRowsAttribute: String

    Objective-C

    NSString *const NSAccessibilityColumnHeaderUIElementsAttribute; NSString *const NSAccessibilityColumnsAttribute; NSString *const NSAccessibilityRowHeaderUIElementsAttribute; NSString *const NSAccessibilityRowsAttribute; NSString *const NSAccessibilitySelectedColumnsAttribute; NSString *const NSAccessibilitySelectedRowsAttribute; NSString *const NSAccessibilitySortDirectionAttribute; NSString *const NSAccessibilityVisibleColumnsAttribute; NSString *const NSAccessibilityVisibleRowsAttribute;

    Constants

    • NSAccessibilityColumnHeaderUIElementsAttribute

      NSAccessibilityColumnHeaderUIElementsAttribute

      The table's column headers (NSArray).

      Available in OS X v10.6 and later.

    • NSAccessibilityColumnsAttribute

      NSAccessibilityColumnsAttribute

      The table's columns (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityRowHeaderUIElementsAttribute

      NSAccessibilityRowHeaderUIElementsAttribute

      The table's row headers (NSArray).

      Available in OS X v10.6 and later.

    • NSAccessibilityRowsAttribute

      NSAccessibilityRowsAttribute

      The table's rows (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilitySelectedColumnsAttribute

      NSAccessibilitySelectedColumnsAttribute

      The table's selected columns (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilitySelectedRowsAttribute

      NSAccessibilitySelectedRowsAttribute

      The table's selected rows (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilitySortDirectionAttribute

      NSAccessibilitySortDirectionAttribute

      The column's sort direction (NSString). See Column Sort Direction for possible values.

      Available in OS X v10.2 and later.

    • NSAccessibilityVisibleColumnsAttribute

      NSAccessibilityVisibleColumnsAttribute

      The table's visible columns (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityVisibleRowsAttribute

      NSAccessibilityVisibleRowsAttribute

      The table's visible rows (NSArray).

      Available in OS X v10.2 and later.

  • Attributes that are used in outline views.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityDisclosedByRowAttribute: String let NSAccessibilityDisclosedRowsAttribute: String let NSAccessibilityDisclosingAttribute: String let NSAccessibilityDisclosureLevelAttribute: String

    Objective-C

    NSString *const NSAccessibilityDisclosedByRowAttribute; NSString *const NSAccessibilityDisclosedRowsAttribute; NSString *const NSAccessibilityDisclosingAttribute; NSString *const NSAccessibilityDisclosureLevelAttribute;

    Constants

    • NSAccessibilityDisclosedByRowAttribute

      NSAccessibilityDisclosedByRowAttribute

      The row disclosing this row (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityDisclosedRowsAttribute

      NSAccessibilityDisclosedRowsAttribute

      The rows disclosed by this row (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityDisclosingAttribute

      NSAccessibilityDisclosingAttribute

      A flag that indicates whether a row is disclosing other rows (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityDisclosureLevelAttribute

      NSAccessibilityDisclosureLevelAttribute

      The indentation level of this row (NSNumber).

      Available in OS X v10.4 and later.

  • Attributes that are specific to cell-based tables.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilitySelectedCellsAttribute: String let NSAccessibilityVisibleCellsAttribute: String

    Objective-C

    NSString *const NSAccessibilitySelectedCellsAttribute; NSString *const NSAccessibilityVisibleCellsAttribute;

    Constants

    • NSAccessibilitySelectedCellsAttribute

      NSAccessibilitySelectedCellsAttribute

      The table's selected cells (NSArray). This attribute is required for cell-based tables.

      Available in OS X v10.6 and later.

    • NSAccessibilityVisibleCellsAttribute

      NSAccessibilityVisibleCellsAttribute

      The table's visible cells (NSArray). This attribute is required for cell-based tables.

      Available in OS X v10.6 and later.

  • Parameterized attributes specific to cell-based tables.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityCellForColumnAndRowParameterizedAttribute: String

    Objective-C

    NSString *const NSAccessibilityCellForColumnAndRowParameterizedAttribute;

    Constants

    • NSAccessibilityCellForColumnAndRowParameterizedAttribute

      NSAccessibilityCellForColumnAndRowParameterizedAttribute

      The cell at the specified row and column.

      The parameter is an NSArray that contains two NSNumber objects: the first number specifies the column index and the second number specifies the row index. This attribute is required for cell-based tables.

      Available in OS X v10.6 and later.

  • Attributes that are specific to individual table cells.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityRowIndexRangeAttribute: String let NSAccessibilityColumnIndexRangeAttribute: String

    Objective-C

    NSString *const NSAccessibilityRowIndexRangeAttribute; NSString *const NSAccessibilityColumnIndexRangeAttribute;

    Constants

    • NSAccessibilityRowIndexRangeAttribute

      NSAccessibilityRowIndexRangeAttribute

      The row index range of the cell (an NSValue instance that contains the row's starting index and index span in the table).

      Available in OS X v10.6 and later.

    • NSAccessibilityColumnIndexRangeAttribute

      NSAccessibilityColumnIndexRangeAttribute

      The column index range of the cell (an NSValue instance that contains the row's starting index and index span in the table).

      Available in OS X v10.6 and later.

  • Attributes that are specific to layout areas.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityHorizontalUnitsAttribute: String let NSAccessibilityVerticalUnitsAttribute: String let NSAccessibilityHorizontalUnitDescriptionAttribute: String let NSAccessibilityVerticalUnitDescriptionAttribute: String

    Objective-C

    NSString *const NSAccessibilityHorizontalUnitsAttribute; NSString *const NSAccessibilityVerticalUnitsAttribute; NSString *const NSAccessibilityHorizontalUnitDescriptionAttribute; NSString *const NSAccessibilityVerticalUnitDescriptionAttribute;

    Constants

    • NSAccessibilityHorizontalUnitsAttribute

      NSAccessibilityHorizontalUnitsAttribute

      The units that the layout view uses for horizontal values (NSString). See Measurement unit attributes for possible values.

      Available in OS X v10.6 and later.

    • NSAccessibilityVerticalUnitsAttribute

      NSAccessibilityVerticalUnitsAttribute

      The units that the layout view uses for vertical values (NSString). See Measurement unit attributes for possible values.

      Available in OS X v10.6 and later.

    • NSAccessibilityHorizontalUnitDescriptionAttribute

      NSAccessibilityHorizontalUnitDescriptionAttribute

      The description of the layout view's horizontal units (NSString).

      Available in OS X v10.6 and later.

    • NSAccessibilityVerticalUnitDescriptionAttribute

      NSAccessibilityVerticalUnitDescriptionAttribute

      The description of the layout view's vertical units (NSString).

      Available in OS X v10.6 and later.

  • Parameterized attributes that are specific to layout areas.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityLayoutPointForScreenPointParameterizedAttribute: String let NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute: String let NSAccessibilityScreenPointForLayoutPointParameterizedAttribute: String let NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute: String

    Objective-C

    NSString *const NSAccessibilityLayoutPointForScreenPointParameterizedAttribute; NSString *const NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute; NSString *const NSAccessibilityScreenPointForLayoutPointParameterizedAttribute; NSString *const NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute;

    Constants

    • NSAccessibilityLayoutPointForScreenPointParameterizedAttribute

      NSAccessibilityLayoutPointForScreenPointParameterizedAttribute

      The point in the layout area (NSValue) corresponding to the specified point on the screen (NSValue).

      Available in OS X v10.6 and later.

    • NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute

      NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute

      The size of the layout area in points (NSValue) corresponding to the specified screen size (NSValue).

      Available in OS X v10.6 and later.

    • NSAccessibilityScreenPointForLayoutPointParameterizedAttribute

      NSAccessibilityScreenPointForLayoutPointParameterizedAttribute

      The screen point (NSValue) corresponding to the specified point in the layout area (NSValue).

      Available in OS X v10.6 and later.

    • NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute

      NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute

      The size of the screen in points (NSValue) corresponding to the specified size of the layout area (NSValue).

      Available in OS X v10.6 and later.

  • Attributes that are specific to the items in a layout area.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityHandlesAttribute: String

    Objective-C

    NSString *const NSAccessibilityHandlesAttribute;

    Constants

    • NSAccessibilityHandlesAttribute

      NSAccessibilityHandlesAttribute

      The drag handles of the item (NSArray).

      Available in OS X v10.6 and later.

  • Attributes that are specific to sliders.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityAllowedValuesAttribute: String let NSAccessibilityLabelUIElementsAttribute: String let NSAccessibilityLabelValueAttribute: String

    Objective-C

    NSString *const NSAccessibilityAllowedValuesAttribute; NSString *const NSAccessibilityLabelUIElementsAttribute; NSString *const NSAccessibilityLabelValueAttribute;

    Constants

    • NSAccessibilityAllowedValuesAttribute

      NSAccessibilityAllowedValuesAttribute

      The allowed values in the slider (NSArray).

      Available in OS X v10.4 and later.

    • NSAccessibilityLabelUIElementsAttribute

      NSAccessibilityLabelUIElementsAttribute

      The elements that represent the slider's labels (NSArray).

      Available in OS X v10.4 and later.

    • NSAccessibilityLabelValueAttribute

      NSAccessibilityLabelValueAttribute

      The value of the label represented by this element (NSNumber).

      Available in OS X v10.4 and later.

  • Attributes that are specific to screen mattes.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityMatteHoleAttribute: String let NSAccessibilityMatteContentUIElementAttribute: String

    Objective-C

    NSString *const NSAccessibilityMatteContentUIElementAttribute; NSString *const NSAccessibilityMatteHoleAttribute;

    Constants

    • NSAccessibilityMatteHoleAttribute

      NSAccessibilityMatteHoleAttribute

      The bounds of the matte hole, in screen coordinates in points (NSValue containing an NSRect).

      Available in OS X v10.1 and later.

      Deprecated in OS X v10.10.

    • NSAccessibilityMatteContentUIElementAttribute

      NSAccessibilityMatteContentUIElementAttribute

      The element that is clipped by the matte (id).

      Available in OS X v10.1 and later.

      Deprecated in OS X v10.10.

  • Attributes that are specific to ruler views.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityMarkerGroupUIElementAttribute: String let NSAccessibilityMarkerTypeAttribute: String let NSAccessibilityMarkerTypeDescriptionAttribute: String let NSAccessibilityMarkerUIElementsAttribute: String let NSAccessibilityMarkerValuesAttribute: String let NSAccessibilityUnitDescriptionAttribute: String let NSAccessibilityUnitsAttribute: String

    Objective-C

    NSString *const NSAccessibilityMarkerGroupUIElementAttribute; NSString *const NSAccessibilityMarkerTypeAttribute; NSString *const NSAccessibilityMarkerTypeDescriptionAttribute; NSString *const NSAccessibilityMarkerUIElementsAttribute; NSString *const NSAccessibilityMarkerValuesAttribute; NSString *const NSAccessibilityUnitDescriptionAttribute; NSString *const NSAccessibilityUnitsAttribute;

    Constants

    • NSAccessibilityMarkerGroupUIElementAttribute

      NSAccessibilityMarkerGroupUIElementAttribute

      A marker group user interface element (id).

      Available in OS X v10.4 and later.

    • NSAccessibilityMarkerTypeAttribute

      NSAccessibilityMarkerTypeAttribute

      The type of the marker (NSString). See Ruler Marker Type Values for possible values.

      Available in OS X v10.4 and later.

    • NSAccessibilityMarkerTypeDescriptionAttribute

      NSAccessibilityMarkerTypeDescriptionAttribute

      The description of the marker type (NSString).

      Available in OS X v10.4 and later.

    • NSAccessibilityMarkerUIElementsAttribute

      NSAccessibilityMarkerUIElementsAttribute

      An array of marker user interface elements (NSArray)

      Available in OS X v10.4 and later.

    • NSAccessibilityMarkerValuesAttribute

      NSAccessibilityMarkerValuesAttribute

      The marker values (NSArray of NSNumber).

      Available in OS X v10.4 and later.

    • NSAccessibilityUnitDescriptionAttribute

      NSAccessibilityUnitDescriptionAttribute

      The description of ruler units (NSString).

      Available in OS X v10.4 and later.

    • NSAccessibilityUnitsAttribute

      NSAccessibilityUnitsAttribute

      The ruler units (NSString). See Measurement Unit Attributes for possible values.

      Available in OS X v10.4 and later.

  • Constants that specify links between accessibility elements.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityLinkedUIElementsAttribute: String let NSAccessibilityTitleUIElementAttribute: String let NSAccessibilityServesAsTitleForUIElementsAttribute: String

    Objective-C

    NSString *const NSAccessibilityLinkedUIElementsAttribute; NSString *const NSAccessibilityServesAsTitleForUIElementsAttribute; NSString *const NSAccessibilityTitleUIElementAttribute;

    Constants

    • NSAccessibilityLinkedUIElementsAttribute

      NSAccessibilityLinkedUIElementsAttribute

      The elements with which this element is related (NSArray).

      For example, the contents of a list item that are displayed in another pane or window.

      Available in OS X v10.4 and later.

    • NSAccessibilityTitleUIElementAttribute

      NSAccessibilityTitleUIElementAttribute

      An element that represents another element's static text title (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityServesAsTitleForUIElementsAttribute

      NSAccessibilityServesAsTitleForUIElementsAttribute

      The elements for which this element serves as the title (NSArray).

      Available in OS X v10.4 and later.

  • Miscellaneous attributes that can apply to various types of elements.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityClearButtonAttribute: String let NSAccessibilityColumnTitlesAttribute: String let NSAccessibilityDecrementButtonAttribute: String let NSAccessibilityDocumentAttribute: String let NSAccessibilityEditedAttribute: String let NSAccessibilityExpandedAttribute: String let NSAccessibilityFilenameAttribute: String let NSAccessibilityHeaderAttribute: String let NSAccessibilityHorizontalScrollBarAttribute: String let NSAccessibilityIncrementButtonAttribute: String let NSAccessibilityIndexAttribute: String let NSAccessibilityNextContentsAttribute: String let NSAccessibilityOrientationAttribute: String let NSAccessibilityOverflowButtonAttribute: String let NSAccessibilityPreviousContentsAttribute: String let NSAccessibilitySearchButtonAttribute: String let NSAccessibilitySearchMenuAttribute: String let NSAccessibilitySelectedAttribute: String let NSAccessibilitySplittersAttribute: String let NSAccessibilityTabsAttribute: String let NSAccessibilityURLAttribute: String let NSAccessibilityVerticalScrollBarAttribute: String let NSAccessibilityWarningValueAttribute: String let NSAccessibilityCriticalValueAttribute: String let NSAccessibilityPlaceholderValueAttribute: String let NSAccessibilityContainsProtectedContentAttribute: String let NSAccessibilityIdentifierAttribute: String

    Objective-C

    NSString *const NSAccessibilityDecrementButtonAttribute; NSString *const NSAccessibilityDocumentAttribute; NSString *const NSAccessibilityEditedAttribute; NSString *const NSAccessibilityExpandedAttribute; NSString *const NSAccessibilityFilenameAttribute; NSString *const NSAccessibilityHeaderAttribute; NSString *const NSAccessibilityHorizontalScrollBarAttribute; NSString *const NSAccessibilityIncrementButtonAttribute; NSString *const NSAccessibilityIndexAttribute; NSString *const NSAccessibilityNextContentsAttribute; NSString *const NSAccessibilityOverflowButtonAttribute; NSString *const NSAccessibilityPreviousContentsAttribute; NSString *const NSAccessibilitySelectedAttribute; NSString *const NSAccessibilitySplittersAttribute; NSString *const NSAccessibilityTabsAttribute; NSString *const NSAccessibilityURLAttribute; NSString *const NSAccessibilityVerticalScrollBarAttribute; NSString *const NSAccessibilityWarningValueAttribute; NSString *const NSAccessibilityCriticalValueAttribute; NSString *const NSAccessibilityPlaceholderValueAttribute; NSString *const NSAccessibilityContainsProtectedContentAttribute; NSString *const NSAccessibilityIdentifierAttribute;

    Constants

    • NSAccessibilityClearButtonAttribute

      NSAccessibilityClearButtonAttribute

      The element that represents the clear button in a search field (id).

      Available in OS X v10.3 and later.

    • NSAccessibilityColumnTitlesAttribute

      NSAccessibilityColumnTitlesAttribute

      The elements that represent the column titles (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityDecrementButtonAttribute

      NSAccessibilityDecrementButtonAttribute

      The element that represents a stepper's decrement button (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityDocumentAttribute

      NSAccessibilityDocumentAttribute

      The URL for the file represented by the element (NSString).

      Available in OS X v10.2 and later.

    • NSAccessibilityEditedAttribute

      NSAccessibilityEditedAttribute

      A flag that indicates whether the element has been modified (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityExpandedAttribute

      NSAccessibilityExpandedAttribute

      A flag that indicates whether the element is expanded (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilityFilenameAttribute

      NSAccessibilityFilenameAttribute

      The filename associated with the element (NSString).

      Available in OS X v10.2 and later.

    • NSAccessibilityHeaderAttribute

      NSAccessibilityHeaderAttribute

      The element that represents a table view's header (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityHorizontalScrollBarAttribute

      NSAccessibilityHorizontalScrollBarAttribute

      The element that represents a scroll view's horizontal scroll bar (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityIncrementButtonAttribute

      NSAccessibilityIncrementButtonAttribute

      The element that represents a stepper's increment button (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityIndexAttribute

      NSAccessibilityIndexAttribute

      The index of the row or column represented by the element (NSValue).

      Available in OS X v10.4 and later.

    • NSAccessibilityNextContentsAttribute

      NSAccessibilityNextContentsAttribute

      The elements representing the contents that follow the current divider element, such as a subview adjacent to a split view's splitter element (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityOrientationAttribute

      NSAccessibilityOrientationAttribute

      The element's orientation, which can have the value NSAccessibilityHorizontalOrientationValue or NSAccessibilityVerticalOrientationValue.

      Available in OS X v10.2 and later.

    • NSAccessibilityOverflowButtonAttribute

      NSAccessibilityOverflowButtonAttribute

      The element that represents a toolbar's overflow button (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityPreviousContentsAttribute

      NSAccessibilityPreviousContentsAttribute

      The elements representing the contents that precede the current divider element, such as a subview adjacent to a split view's splitter bar element (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilitySearchButtonAttribute

      NSAccessibilitySearchButtonAttribute

      The element that represents the search button in a search field (id).

      Available in OS X v10.3 and later.

    • NSAccessibilitySearchMenuAttribute

      NSAccessibilitySearchMenuAttribute

      The element that represents the menu in a search field (id).

      Available in OS X v10.3 and later.

    • NSAccessibilitySelectedAttribute

      NSAccessibilitySelectedAttribute

      A flag that indicates whether the element is selected (NSNumber).

      Available in OS X v10.2 and later.

    • NSAccessibilitySplittersAttribute

      NSAccessibilitySplittersAttribute

      The views and splitter bar in a split view (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityTabsAttribute

      NSAccessibilityTabsAttribute

      The tab elements in a tab view (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityURLAttribute

      NSAccessibilityURLAttribute

      The URL associated with the element (NSURL).

      Available in OS X v10.4 and later.

    • NSAccessibilityVerticalScrollBarAttribute

      NSAccessibilityVerticalScrollBarAttribute

      The element that represents the vertical scroll bar in a scroll view (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityWarningValueAttribute

      NSAccessibilityWarningValueAttribute

      The warning value in a level indicator (typically, NSNumber).

      Available in OS X v10.6 and later.

    • NSAccessibilityCriticalValueAttribute

      NSAccessibilityCriticalValueAttribute

      The critical value in a level indicator (typically, NSNumber).

      Available in OS X v10.6 and later.

    • NSAccessibilityPlaceholderValueAttribute

      NSAccessibilityPlaceholderValueAttribute

      The placeholder value for a control, such as a text field (NSString).

      Available in OS X v10.6 and later.

    • NSAccessibilityContainsProtectedContentAttribute

      NSAccessibilityContainsProtectedContentAttribute

      A flag that indicates whether the object contains protected content (YEStrue), or not (NOfalse) (NSNumber as boolValue).

      Available in OS X v10.9 and later.

    • NSAccessibilityIdentifierAttribute

      NSAccessibilityIdentifierAttribute

      The identity of the element (NSString).

      Available in OS X v10.7 and later.

  • Values that indicate the sort direction of a column (used with the accessibilitySortDirection property).

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityAscendingSortDirectionValue: String let NSAccessibilityDescendingSortDirectionValue: String let NSAccessibilityUnknownSortDirectionValue: String

    Objective-C

    NSString *const NSAccessibilityAscendingSortDirectionValue; NSString *const NSAccessibilityDescendingSortDirectionValue; NSString *const NSAccessibilityUnknownSortDirectionValue;

    Constants

    • NSAccessibilityAscendingSortDirectionValue

      NSAccessibilityAscendingSortDirectionValue

      The column is sorted in ascending values.

      Available in OS X v10.4 and later.

    • NSAccessibilityDescendingSortDirectionValue

      NSAccessibilityDescendingSortDirectionValue

      The column is sorted in descending values.

      Available in OS X v10.4 and later.

    • NSAccessibilityUnknownSortDirectionValue

      NSAccessibilityUnknownSortDirectionValue

      The sort direction is unknown.

      Available in OS X v10.4 and later.

  • Values that indicate the unit values of a ruler or layout area (used with the accessibilityHorizontalUnits, accessibilityVerticalUnits, and accessibilityUnits properties).

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityInchesUnitValue: String let NSAccessibilityCentimetersUnitValue: String let NSAccessibilityPointsUnitValue: String let NSAccessibilityPicasUnitValue: String let NSAccessibilityUnknownUnitValue: String

    Objective-C

    NSString *const NSAccessibilityCentimetersUnitValue; NSString *const NSAccessibilityInchesUnitValue; NSString *const NSAccessibilityPicasUnitValue; NSString *const NSAccessibilityPointsUnitValue; NSString *const NSAccessibilityUnknownUnitValue;

    Constants

    • NSAccessibilityInchesUnitValue

      NSAccessibilityInchesUnitValue

      The units are inches.

      Available in OS X v10.4 and later.

    • NSAccessibilityCentimetersUnitValue

      NSAccessibilityCentimetersUnitValue

      The units are centimeters.

      Available in OS X v10.4 and later.

    • NSAccessibilityPointsUnitValue

      NSAccessibilityPointsUnitValue

      The units are points.

      Available in OS X v10.4 and later.

    • NSAccessibilityPicasUnitValue

      NSAccessibilityPicasUnitValue

      The units are picas.

      Available in OS X v10.4 and later.

    • NSAccessibilityUnknownUnitValue

      NSAccessibilityUnknownUnitValue

      The units are unknown.

      Available in OS X v10.4 and later.

  • Values that indicate the orientation of elements, such as scroll bars and split views. Use these values with an accessibility element’s accessibilityOrientation property.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityHorizontalOrientationValue: String let NSAccessibilityVerticalOrientationValue: String let NSAccessibilityUnknownOrientationValue: String

    Objective-C

    NSString *const NSAccessibilityHorizontalOrientationValue; NSString *const NSAccessibilityVerticalOrientationValue; NSString *const NSAccessibilityUnknownOrientationValue;

    Constants

    • NSAccessibilityHorizontalOrientationValue

      NSAccessibilityHorizontalOrientationValue

      The element is oriented horizontally.

      Available in OS X v10.2 and later.

    • NSAccessibilityVerticalOrientationValue

      NSAccessibilityVerticalOrientationValue

      The element is oriented vertically.

      Available in OS X v10.2 and later.

    • NSAccessibilityUnknownOrientationValue

      NSAccessibilityUnknownOrientationValue

      The element has unknown orientation.

      Available in OS X v10.6 and later.

  • Values that indicate the marker type of an element. Use these values with an accessibility element’s accessibilityRulerMarkerType property.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityLeftTabStopMarkerTypeValue: String let NSAccessibilityRightTabStopMarkerTypeValue: String let NSAccessibilityCenterTabStopMarkerTypeValue: String let NSAccessibilityDecimalTabStopMarkerTypeValue: String let NSAccessibilityHeadIndentMarkerTypeValue: String let NSAccessibilityTailIndentMarkerTypeValue: String let NSAccessibilityFirstLineIndentMarkerTypeValue: String let NSAccessibilityUnknownMarkerTypeValue: String

    Objective-C

    NSString *const NSAccessibilityCenterTabStopMarkerTypeValue; NSString *const NSAccessibilityDecimalTabStopMarkerTypeValue; NSString *const NSAccessibilityFirstLineIndentMarkerTypeValue; NSString *const NSAccessibilityHeadIndentMarkerTypeValue; NSString *const NSAccessibilityLeftTabStopMarkerTypeValue; NSString *const NSAccessibilityRightTabStopMarkerTypeValue; NSString *const NSAccessibilityTailIndentMarkerTypeValue; NSString *const NSAccessibilityUnknownMarkerTypeValue;

    Constants

    • NSAccessibilityLeftTabStopMarkerTypeValue

      NSAccessibilityLeftTabStopMarkerTypeValue

      Left tab stop.

      Available in OS X v10.4 and later.

    • NSAccessibilityRightTabStopMarkerTypeValue

      NSAccessibilityRightTabStopMarkerTypeValue

      Right tab stop.

      Available in OS X v10.4 and later.

    • NSAccessibilityCenterTabStopMarkerTypeValue

      NSAccessibilityCenterTabStopMarkerTypeValue

      Center tab stop.

      Available in OS X v10.4 and later.

    • NSAccessibilityDecimalTabStopMarkerTypeValue

      NSAccessibilityDecimalTabStopMarkerTypeValue

      Decimal tab stop.

      Available in OS X v10.4 and later.

    • NSAccessibilityHeadIndentMarkerTypeValue

      NSAccessibilityHeadIndentMarkerTypeValue

      Head indent marker.

      Available in OS X v10.4 and later.

    • NSAccessibilityTailIndentMarkerTypeValue

      NSAccessibilityTailIndentMarkerTypeValue

      Tail indent marker.

      Available in OS X v10.4 and later.

    • NSAccessibilityFirstLineIndentMarkerTypeValue

      NSAccessibilityFirstLineIndentMarkerTypeValue

      First line indent marker.

      Available in OS X v10.4 and later.

    • NSAccessibilityUnknownMarkerTypeValue

      NSAccessibilityUnknownMarkerTypeValue

      Unknown marker type.

      Available in OS X v10.4 and later.

  • Standard actions that accessibility objects can perform.

    Use of these constants are discouraged. Use the new method-based API instead. For more information, see Accessibility Programming Guide for OS X or NSAccessibility Protocol Reference.

    Declaration

    Swift

    let NSAccessibilityConfirmAction: String let NSAccessibilityDecrementAction: String let NSAccessibilityDeleteAction: String let NSAccessibilityIncrementAction: String let NSAccessibilityPickAction: String let NSAccessibilityPressAction: String let NSAccessibilityCancelAction: String let NSAccessibilityRaiseAction: String let NSAccessibilityShowAlternateUIAction: String let NSAccessibilityShowDefaultUIAction: String let NSAccessibilityShowMenuAction: String

    Objective-C

    NSString *const NSAccessibilityCancelAction; NSString *const NSAccessibilityConfirmAction; NSString *const NSAccessibilityDecrementAction; NSString *const NSAccessibilityDeleteAction; NSString *const NSAccessibilityIncrementAction; NSString *const NSAccessibilityPickAction; NSString *const NSAccessibilityPressAction; NSString *const NSAccessibilityRaiseAction; NSString *const NSAccessibilityShowAlternateUIAction; NSString *const NSAccessibilityShowDefaultUIAction; NSString *const NSAccessibilityShowMenuAction;

    Constants

    • NSAccessibilityConfirmAction

      NSAccessibilityConfirmAction

      An action that simulates pressing Return in the object, such as a text field.

      Available in OS X v10.2 and later.

    • NSAccessibilityDecrementAction

      NSAccessibilityDecrementAction

      An action that decrements the value of the object.

      Available in OS X v10.2 and later.

    • NSAccessibilityDeleteAction

      NSAccessibilityDeleteAction

      An action that deletes the value of the object.

      Available in OS X v10.4 and later.

    • NSAccessibilityIncrementAction

      NSAccessibilityIncrementAction

      An action that increments the value of the object.

      Available in OS X v10.2 and later.

    • NSAccessibilityPickAction

      NSAccessibilityPickAction

      An action that selects the object, such as a menu item.

      Available in OS X v10.2 and later.

    • NSAccessibilityPressAction

      NSAccessibilityPressAction

      An action that simulates clicking an object, such as a button.

      Available in OS X v10.2 and later.

    • NSAccessibilityCancelAction

      NSAccessibilityCancelAction

      An action that cancels the operation.

      Available in OS X v10.3 and later.

    • NSAccessibilityRaiseAction

      NSAccessibilityRaiseAction

      An action that simulates bringing a window forward by clicking on its title bar.

      Available in OS X v10.3 and later.

    • NSAccessibilityShowAlternateUIAction

      NSAccessibilityShowAlternateUIAction

      An action that shows an alternate UI; for example, during a mouse-hover event.

      Available in OS X v10.9 and later.

    • NSAccessibilityShowDefaultUIAction

      NSAccessibilityShowDefaultUIAction

      An action that shows the original or default UI; for example, during a mouse-hover event.

      Available in OS X v10.9 and later.

    • NSAccessibilityShowMenuAction

      NSAccessibilityShowMenuAction

      An action that simulates showing a menu by clicking on it.

      Available in OS X v10.4 and later.