Mac Developer Library

Developer

AppKit Framework Reference NSAccessibility Informal Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSAccessibility

The NSAccessibility informal protocol defines methods that Cocoa classes must implement to make themselves available to an external assistive application. An assistive application interacts with your app to allow persons with disabilities to use your app. For example, a person with a visual impairment could use an application to convert menu items and button labels into speech and then perform actions by verbal command.

Because many Cocoa user interface classes already implement the NSAccessibility protocol, providing reasonable default behavior in most cases, Cocoa apps built with standard objects are automatically accessible. In general, you need to explicitly implement the NSAccessibility protocol methods only if you subclass one of them, adding new behavior.

The Cocoa implementations of these methods raise an NSAccessibilityException when errors occur, such as requesting the value of an unsupported attribute. In most cases, subclasses don’t need to raise or catch these exceptions, because overridden methods should invoke their inherited methods for unrecognized attribute and action names.

An accessible object is described by a set of attributes that define characteristics such as the object type, its value, its size and position on the screen, and its place in the accessibility hierarchy. For some objects, the set of attributes can include parameterized attributes. Parameterized attributes behave similar to a function by allowing you to pass a parameter when requesting an attribute value.

See Accessibility in AppKit Functions Reference for functions related to accessibility.

See Accessibility Roles and Attributes Reference for the relationships between roles and their subroles, attributes, and actions.

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.
  • Returns an array of attribute names supported by the receiver.

    Deprecation Statement

    Instead, use the new method-based API. For more information see Accessibility Overview 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

    Instead, use the new method-based API. For more information see Accessibility Overview 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 a Boolean value that indicates whether the value for the specified attribute in the receiver can be set.

    Deprecation Statement

    Instead, use the new method-based API. For more information see Accessibility Overview 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.

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

    Deprecation Statement

    Instead, use the new method-based API. For more information see Accessibility Overview 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 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.

  • 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

    Instead, use the new method-based API. For more information see Accessibility Overview 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 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 only works 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. This is done 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 assistive applications.

    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, in the case of NSButton, use the underlying NSButtonCell. The 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.

  • Returns the count of the specified accessibility array attribute.

    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.

    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 max 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 the index of the specified accessibility child in the parent.

    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 an array of action names supported by the receiver.

    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 a localized description of the specified action.

    Deprecation Statement

    Instead, use the new method-based API. For more information see Accessibility Overview 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.

  • Performs the action associated with the specified action.

    Deprecation Statement

    Instead, use the new method-based API. For more information see Accessibility Overview 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.

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

    Deprecation Statement

    Instead, use the new method-based API. For more information see Accessibility Overview 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, ignored children should not be included; instead, the ignored children should be replaced by their own unignored children. The same applies when asking for an object’s parent: an ignored parent should be skipped and the first unignored ancestor treated as the real parent. Likewise, when a hit-test or focus test is satisfied by an ignored element, the element’s first unignored ancestor (or descendant in certain cases, such as single-celled controls) should be used instead.

    Ignored elements allow the accessibility hierarchy to be a simplified version of the view and object ownership hierarchies. Intermediate objects can be bypassed and the real user interface objects accessed 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 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 receiver. 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 receiver’s children, either return self or, if available, invoke the superclass’s implementation. The default NSView and NSCell implementations test whether the receiver 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.

  • 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 receiver. 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 receiver is an ignored element and, if so, 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.

Data Types

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

    Declaration

    Swift

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

    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.

    Declaration

    Swift

    let NSAccessibilityInsertionPointLineNumberAttribute: NSString! let NSAccessibilityNumberOfCharactersAttribute: NSString! let NSAccessibilitySelectedTextAttribute: NSString! let NSAccessibilitySelectedTextRangeAttribute: NSString! let NSAccessibilitySelectedTextRangesAttribute: NSString! let NSAccessibilitySharedCharacterRangeAttribute: NSString! let NSAccessibilitySharedTextUIElementsAttribute: NSString! let NSAccessibilityVisibleCharacterRangeAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityLineForIndexParameterizedAttribute: NSString! let NSAccessibilityRangeForLineParameterizedAttribute: NSString! let NSAccessibilityStringForRangeParameterizedAttribute: NSString! let NSAccessibilityRangeForPositionParameterizedAttribute: NSString! let NSAccessibilityRangeForIndexParameterizedAttribute: NSString! let NSAccessibilityBoundsForRangeParameterizedAttribute: NSString! let NSAccessibilityRTFForRangeParameterizedAttribute: NSString! let NSAccessibilityStyleRangeForIndexParameterizedAttribute: NSString! let NSAccessibilityAttributedStringForRangeParameterizedAttribute: NSString!

    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) 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).

      Available in OS X v10.3 and later.

    • NSAccessibilityRangeForPositionParameterizedAttribute

      NSAccessibilityRangeForPositionParameterizedAttribute

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

      Available in OS X v10.3 and later.

    • NSAccessibilityRangeForIndexParameterizedAttribute

      NSAccessibilityRangeForIndexParameterizedAttribute

      The full range of characters (NSValue containing an NSRange), 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) enclosing the specified range of characters (NSValue containing an NSRange). 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).

      Available in OS X v10.3 and later.

    • NSAccessibilityStyleRangeForIndexParameterizedAttribute

      NSAccessibilityStyleRangeForIndexParameterizedAttribute

      The full range of characters (NSValue containing an NSRange), 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.

    Declaration

    Swift

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

    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, you should 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.

    Declaration

    Swift

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

    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 document proxy (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.

  • Values that indicate the orientation of elements, such as scroll bars and split views. One of these values is returned as the value for an object’s NSAccessibilityOrientationAttribute.

    Declaration

    Swift

    let NSAccessibilityHorizontalOrientationValue: NSString! let NSAccessibilityVerticalOrientationValue: NSString! let NSAccessibilityUnknownOrientationValue: NSString!

    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.

  • Attributes that are specific to the application object.

    Declaration

    Swift

    let NSAccessibilityFocusedUIElementAttribute: NSString! let NSAccessibilityFocusedWindowAttribute: NSString! let NSAccessibilityFrontmostAttribute: NSString! let NSAccessibilityHiddenAttribute: NSString! let NSAccessibilityMainWindowAttribute: NSString! let NSAccessibilityMenuBarAttribute: NSString! let NSAccessibilityWindowsAttribute: NSString! let NSAccessibilityExtrasMenuBarAttribute: NSString!

    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 application’s window that has current focus (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityFrontmostAttribute

      NSAccessibilityFrontmostAttribute

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

      Available in OS X v10.2 and later.

    • NSAccessibilityHiddenAttribute

      NSAccessibilityHiddenAttribute

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

      Available in OS X v10.2 and later.

    • NSAccessibilityMainWindowAttribute

      NSAccessibilityMainWindowAttribute

      The application’s main window (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityMenuBarAttribute

      NSAccessibilityMenuBarAttribute

      The application’s menu bar (id).

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowsAttribute

      NSAccessibilityWindowsAttribute

      The application’s windows (NSArray).

      Available in OS X v10.2 and later.

    • NSAccessibilityExtrasMenuBarAttribute

      NSAccessibilityExtrasMenuBarAttribute

      The application 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.

    Declaration

    Swift

    let NSAccessibilityColumnCountAttribute: NSString! let NSAccessibilityOrderedByRowAttribute: NSString! let NSAccessibilityRowCountAttribute: NSString!

    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: NSString! let NSAccessibilityColumnsAttribute: NSString! let NSAccessibilityRowHeaderUIElementsAttribute: NSString! let NSAccessibilityRowsAttribute: NSString! let NSAccessibilitySelectedColumnsAttribute: NSString! let NSAccessibilitySelectedRowsAttribute: NSString! let NSAccessibilitySortDirectionAttribute: NSString! let NSAccessibilityVisibleColumnsAttribute: NSString! let NSAccessibilityVisibleRowsAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityDisclosedByRowAttribute: NSString! let NSAccessibilityDisclosedRowsAttribute: NSString! let NSAccessibilityDisclosingAttribute: NSString! let NSAccessibilityDisclosureLevelAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilitySelectedCellsAttribute: NSString! let NSAccessibilityVisibleCellsAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityCellForColumnAndRowParameterizedAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityRowIndexRangeAttribute: NSString! let NSAccessibilityColumnIndexRangeAttribute: NSString!

    Objective-C

    NSString *const NSAccessibilityRowIndexRangeAttribute; NSString *const NSAccessibilityColumnIndexRangeAttribute;

    Constants

    • NSAccessibilityRowIndexRangeAttribute

      NSAccessibilityRowIndexRangeAttribute

      The row index range of the cell (an NSValue 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 that contains the row’s starting index and index span in the table).

      Available in OS X v10.6 and later.

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

    Declaration

    Swift

    let NSAccessibilityAscendingSortDirectionValue: NSString! let NSAccessibilityDescendingSortDirectionValue: NSString! let NSAccessibilityUnknownSortDirectionValue: NSString!

    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.

  • Attributes that are specific to layout areas.

    Declaration

    Swift

    let NSAccessibilityHorizontalUnitsAttribute: NSString! let NSAccessibilityVerticalUnitsAttribute: NSString! let NSAccessibilityHorizontalUnitDescriptionAttribute: NSString! let NSAccessibilityVerticalUnitDescriptionAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityLayoutPointForScreenPointParameterizedAttribute: NSString! let NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute: NSString! let NSAccessibilityScreenPointForLayoutPointParameterizedAttribute: NSString! let NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityHandlesAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityAllowedValuesAttribute: NSString! let NSAccessibilityLabelUIElementsAttribute: NSString! let NSAccessibilityLabelValueAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityMatteHoleAttribute: NSString! let NSAccessibilityMatteContentUIElementAttribute: NSString!

    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.

    Declaration

    Swift

    let NSAccessibilityMarkerGroupUIElementAttribute: NSString! let NSAccessibilityMarkerTypeAttribute: NSString! let NSAccessibilityMarkerTypeDescriptionAttribute: NSString! let NSAccessibilityMarkerUIElementsAttribute: NSString! let NSAccessibilityMarkerValuesAttribute: NSString! let NSAccessibilityUnitDescriptionAttribute: NSString! let NSAccessibilityUnitsAttribute: NSString!

    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

      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

      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.

  • Values that indicate the marker type of an element.

    Declaration

    Swift

    let NSAccessibilityLeftTabStopMarkerTypeValue: NSString! let NSAccessibilityRightTabStopMarkerTypeValue: NSString! let NSAccessibilityCenterTabStopMarkerTypeValue: NSString! let NSAccessibilityDecimalTabStopMarkerTypeValue: NSString! let NSAccessibilityHeadIndentMarkerTypeValue: NSString! let NSAccessibilityTailIndentMarkerTypeValue: NSString! let NSAccessibilityFirstLineIndentMarkerTypeValue: NSString! let NSAccessibilityUnknownMarkerTypeValue: NSString!

    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.

  • Values that indicate the unit values of a ruler or layout area (used with NSAccessibilityUnitsAttribute).

    Declaration

    Swift

    let NSAccessibilityInchesUnitValue: NSString! let NSAccessibilityCentimetersUnitValue: NSString! let NSAccessibilityPointsUnitValue: NSString! let NSAccessibilityPicasUnitValue: NSString! let NSAccessibilityUnknownUnitValue: NSString!

    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.

  • Constants that specify links between accessibility elements.

    Declaration

    Swift

    let NSAccessibilityLinkedUIElementsAttribute: NSString! let NSAccessibilityTitleUIElementAttribute: NSString! let NSAccessibilityServesAsTitleForUIElementsAttribute: NSString!

    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.

    Declaration

    Swift

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

    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 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 contents following 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 contents preceding 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.

  • Standard roles that identify the type of object an accessibility object represents. One of these values is returned as the value for an object’s NSAccessibilityRoleAttribute.

    Declaration

    Swift

    let NSAccessibilityApplicationRole: NSString! let NSAccessibilityBrowserRole: NSString! let NSAccessibilityBusyIndicatorRole: NSString! let NSAccessibilityButtonRole: NSString! let NSAccessibilityCellRole: NSString! let NSAccessibilityCheckBoxRole: NSString! let NSAccessibilityColorWellRole: NSString! let NSAccessibilityColumnRole: NSString! let NSAccessibilityComboBoxRole: NSString! let NSAccessibilityDisclosureTriangleRole: NSString! let NSAccessibilityDrawerRole: NSString! let NSAccessibilityGridRole: NSString! let NSAccessibilityGroupRole: NSString! let NSAccessibilityGrowAreaRole: NSString! let NSAccessibilityHandleRole: NSString! let NSAccessibilityHelpTagRole: NSString! let NSAccessibilityImageRole: NSString! let NSAccessibilityIncrementorRole: NSString! let NSAccessibilityLayoutAreaRole: NSString! let NSAccessibilityLayoutItemRole: NSString! let NSAccessibilityLinkRole: NSString! let NSAccessibilityListRole: NSString! let NSAccessibilityLevelIndicatorRole: NSString! let NSAccessibilityMatteRole: NSString! let NSAccessibilityMenuBarRole: NSString! let NSAccessibilityMenuButtonRole: NSString! let NSAccessibilityMenuItemRole: NSString! let NSAccessibilityMenuRole: NSString! let NSAccessibilityOutlineRole: NSString! let NSAccessibilityPopoverRole: NSString! let NSAccessibilityPopUpButtonRole: NSString! let NSAccessibilityProgressIndicatorRole: NSString! let NSAccessibilityRadioButtonRole: NSString! let NSAccessibilityRadioGroupRole: NSString! let NSAccessibilityRelevanceIndicatorRole: NSString! let NSAccessibilityRowRole: NSString! let NSAccessibilityRulerRole: NSString! let NSAccessibilityRulerMarkerRole: NSString! let NSAccessibilityScrollAreaRole: NSString! let NSAccessibilityScrollBarRole: NSString! let NSAccessibilitySheetRole: NSString! let NSAccessibilitySliderRole: NSString! let NSAccessibilitySplitGroupRole: NSString! let NSAccessibilitySplitterRole: NSString! let NSAccessibilityStaticTextRole: NSString! let NSAccessibilitySystemWideRole: NSString! let NSAccessibilityTabGroupRole: NSString! let NSAccessibilityTableRole: NSString! let NSAccessibilityTextAreaRole: NSString! let NSAccessibilityTextFieldRole: NSString! let NSAccessibilityToolbarRole: NSString! let NSAccessibilityUnknownRole: NSString! let NSAccessibilityValueIndicatorRole: NSString! let NSAccessibilityWindowRole: NSString!

    Objective-C

    NSString *const NSAccessibilityApplicationRole; NSString *const NSAccessibilityBrowserRole; NSString *const NSAccessibilityBusyIndicatorRole; NSString *const NSAccessibilityButtonRole; NSString *const NSAccessibilityCellRole; NSString *const NSAccessibilityCheckBoxRole; NSString *const NSAccessibilityColorWellRole; NSString *const NSAccessibilityColumnRole; NSString *const NSAccessibilityComboBoxRole; NSString *const NSAccessibilityDisclosureTriangleRole; NSString *const NSAccessibilityDrawerRole; NSString *const NSAccessibilityGridRole; NSString *const NSAccessibilityGroupRole; NSString *const NSAccessibilityGrowAreaRole; NSString *const NSAccessibilityHandleRole; NSString *const NSAccessibilityHelpTagRole; NSString *const NSAccessibilityImageRole; NSString *const NSAccessibilityIncrementorRole; NSString *const NSAccessibilityLayoutAreaRole; NSString *const NSAccessibilityLayoutItemRole; NSString *const NSAccessibilityLinkRole; NSString *const NSAccessibilityListRole; NSString *const NSAccessibilityLevelIndicatorRole; NSString *const NSAccessibilityMatteRole; NSString *const NSAccessibilityMenuBarRole; NSString *const NSAccessibilityMenuButtonRole; NSString *const NSAccessibilityMenuItemRole; NSString *const NSAccessibilityMenuRole; NSString *const NSAccessibilityOutlineRole; NSString *const NSAccessibilityPopoverRole; NSString *const NSAccessibilityPopUpButtonRole; NSString *const NSAccessibilityProgressIndicatorRole; NSString *const NSAccessibilityRadioButtonRole; NSString *const NSAccessibilityRadioGroupRole; NSString *const NSAccessibilityRelevanceIndicatorRole; NSString *const NSAccessibilityRowRole; NSString *const NSAccessibilityRulerMarkerRole; NSString *const NSAccessibilityRulerRole; NSString *const NSAccessibilityScrollAreaRole; NSString *const NSAccessibilityScrollBarRole; NSString *const NSAccessibilitySheetRole; NSString *const NSAccessibilitySliderRole; NSString *const NSAccessibilitySortButtonRole; NSString *const NSAccessibilitySplitGroupRole; NSString *const NSAccessibilitySplitterRole; NSString *const NSAccessibilityStaticTextRole; NSString *const NSAccessibilitySystemWideRole; NSString *const NSAccessibilityTabGroupRole; NSString *const NSAccessibilityTableRole; NSString *const NSAccessibilityTextAreaRole; NSString *const NSAccessibilityTextFieldRole; NSString *const NSAccessibilityToolbarRole; NSString *const NSAccessibilityUnknownRole; NSString *const NSAccessibilityValueIndicatorRole; NSString *const NSAccessibilityWindowRole;

    Constants

    • NSAccessibilityApplicationRole

      NSAccessibilityApplicationRole

      Application.

      Available in OS X v10.2 and later.

    • NSAccessibilityBrowserRole

      NSAccessibilityBrowserRole

      Browser.

      Available in OS X v10.2 and later.

    • NSAccessibilityBusyIndicatorRole

      NSAccessibilityBusyIndicatorRole

      Busy indicator.

      Available in OS X v10.2 and later.

    • NSAccessibilityButtonRole

      NSAccessibilityButtonRole

      Button.

      Available in OS X v10.2 and later.

    • NSAccessibilityCellRole

      NSAccessibilityCellRole

      Cell in a table or matrix.

      Available in OS X v10.6 and later.

    • NSAccessibilityCheckBoxRole

      NSAccessibilityCheckBoxRole

      Checkbox.

      Available in OS X v10.2 and later.

    • NSAccessibilityColorWellRole

      NSAccessibilityColorWellRole

      Color well.

      Available in OS X v10.2 and later.

    • NSAccessibilityColumnRole

      NSAccessibilityColumnRole

      Column.

      Available in OS X v10.2 and later.

    • NSAccessibilityComboBoxRole

      NSAccessibilityComboBoxRole

      Combo box.

      Available in OS X v10.2 and later.

    • NSAccessibilityDisclosureTriangleRole

      NSAccessibilityDisclosureTriangleRole

      Disclosure triangle.

      Available in OS X v10.5 and later.

    • NSAccessibilityDrawerRole

      NSAccessibilityDrawerRole

      Drawer.

      Available in OS X v10.2 and later.

    • NSAccessibilityGridRole

      NSAccessibilityGridRole

      Grid.

      Available in OS X v10.5 and later.

    • NSAccessibilityGroupRole

      NSAccessibilityGroupRole

      Group.

      Available in OS X v10.2 and later.

    • NSAccessibilityGrowAreaRole

      NSAccessibilityGrowAreaRole

      A window’s grow (resize) area.

      Available in OS X v10.2 and later.

    • NSAccessibilityHandleRole

      NSAccessibilityHandleRole

      Drag handle.

      Available in OS X v10.6 and later.

    • NSAccessibilityHelpTagRole

      NSAccessibilityHelpTagRole

      Help tag.

      Available in OS X v10.4 and later.

    • NSAccessibilityImageRole

      NSAccessibilityImageRole

      Image.

      Available in OS X v10.2 and later.

    • NSAccessibilityIncrementorRole

      NSAccessibilityIncrementorRole

      Stepper.

      Available in OS X v10.2 and later.

    • NSAccessibilityLayoutAreaRole

      NSAccessibilityLayoutAreaRole

      Layout area (a view, such as a graphic view, that contains visual elements that may not have any accessibility representation).

      Available in OS X v10.6 and later.

    • NSAccessibilityLayoutItemRole

      NSAccessibilityLayoutItemRole

      An item in a layout area.

      Available in OS X v10.6 and later.

    • NSAccessibilityLinkRole

      NSAccessibilityLinkRole

      Link.

      Available in OS X v10.4 and later.

    • NSAccessibilityListRole

      NSAccessibilityListRole

      List.

      Available in OS X v10.2 and later.

    • NSAccessibilityLevelIndicatorRole

      NSAccessibilityLevelIndicatorRole

      Level indicator.

      Available in OS X v10.6 and later.

    • NSAccessibilityMatteRole

      NSAccessibilityMatteRole

      Matte.

      Available in OS X v10.4 and later.

    • NSAccessibilityMenuBarRole

      NSAccessibilityMenuBarRole

      Menu bar.

      Available in OS X v10.2 and later.

    • NSAccessibilityMenuButtonRole

      NSAccessibilityMenuButtonRole

      Menu button.

      Available in OS X v10.2 and later.

    • NSAccessibilityMenuItemRole

      NSAccessibilityMenuItemRole

      Menu item.

      Available in OS X v10.2 and later.

    • NSAccessibilityMenuRole

      NSAccessibilityMenuRole

      Menu.

      Available in OS X v10.2 and later.

    • NSAccessibilityOutlineRole

      NSAccessibilityOutlineRole

      Outline.

      Available in OS X v10.2 and later.

    • NSAccessibilityPopoverRole

      NSAccessibilityPopoverRole

      Popover.

      Available in OS X v10.7 and later.

    • NSAccessibilityPopUpButtonRole

      NSAccessibilityPopUpButtonRole

      Pop-up button.

      Available in OS X v10.2 and later.

    • NSAccessibilityProgressIndicatorRole

      NSAccessibilityProgressIndicatorRole

      Progress indicator.

      Available in OS X v10.2 and later.

    • NSAccessibilityRadioButtonRole

      NSAccessibilityRadioButtonRole

      Radio button.

      Available in OS X v10.2 and later.

    • NSAccessibilityRadioGroupRole

      NSAccessibilityRadioGroupRole

      Radio button group.

      Available in OS X v10.2 and later.

    • NSAccessibilityRelevanceIndicatorRole

      NSAccessibilityRelevanceIndicatorRole

      Relevance indicator.

      Available in OS X v10.2 and later.

    • NSAccessibilityRowRole

      NSAccessibilityRowRole

      Row.

      Available in OS X v10.2 and later.

    • NSAccessibilityRulerRole

      NSAccessibilityRulerRole

      Ruler.

      Available in OS X v10.4 and later.

    • NSAccessibilityRulerMarkerRole

      NSAccessibilityRulerMarkerRole

      Ruler marker.

      Available in OS X v10.4 and later.

    • NSAccessibilityScrollAreaRole

      NSAccessibilityScrollAreaRole

      Scroll view.

      Available in OS X v10.2 and later.

    • NSAccessibilityScrollBarRole

      NSAccessibilityScrollBarRole

      Scroll bar.

      Available in OS X v10.2 and later.

    • NSAccessibilitySheetRole

      NSAccessibilitySheetRole

      Sheet.

      Available in OS X v10.2 and later.

    • NSAccessibilitySliderRole

      NSAccessibilitySliderRole

      Slider.

      Available in OS X v10.2 and later.

    • NSAccessibilitySortButtonRole

      NSAccessibilitySortButtonRole

      Sort button.

      Available in OS X v10.4 and later.

      Deprecated in OS X v10.6.

    • NSAccessibilitySplitGroupRole

      NSAccessibilitySplitGroupRole

      Split view.

      Available in OS X v10.2 and later.

    • NSAccessibilitySplitterRole

      NSAccessibilitySplitterRole

      Splitter bar of a split view.

      Available in OS X v10.2 and later.

    • NSAccessibilityStaticTextRole

      NSAccessibilityStaticTextRole

      Uneditable text.

      Available in OS X v10.2 and later.

    • NSAccessibilitySystemWideRole

      NSAccessibilitySystemWideRole

      The system-wide accessibility object.

      Available in OS X v10.2 and later.

    • NSAccessibilityTabGroupRole

      NSAccessibilityTabGroupRole

      Tab group.

      Available in OS X v10.2 and later.

    • NSAccessibilityTableRole

      NSAccessibilityTableRole

      Table.

      Available in OS X v10.2 and later.

    • NSAccessibilityTextAreaRole

      NSAccessibilityTextAreaRole

      Text view.

      Available in OS X v10.2 and later.

    • NSAccessibilityTextFieldRole

      NSAccessibilityTextFieldRole

      Text field.

      Available in OS X v10.2 and later.

    • NSAccessibilityToolbarRole

      NSAccessibilityToolbarRole

      Toolbar.

      Available in OS X v10.2 and later.

    • NSAccessibilityUnknownRole

      NSAccessibilityUnknownRole

      Unknown object type.

      Available in OS X v10.2 and later.

    • NSAccessibilityValueIndicatorRole

      NSAccessibilityValueIndicatorRole

      Value indicator.

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowRole

      NSAccessibilityWindowRole

      Window.

      Available in OS X v10.2 and later.

  • Subroles that identify a specialized type of object an accessibility object represents. One of these values is returned as the value for an object’s NSAccessibilitySubroleAttribute.

    Declaration

    Swift

    let NSAccessibilityCloseButtonSubrole: NSString! let NSAccessibilityDecrementArrowSubrole: NSString! let NSAccessibilityDecrementPageSubrole: NSString! let NSAccessibilityDescriptionListSubrole: NSString! let NSAccessibilityDialogSubrole: NSString! let NSAccessibilityFloatingWindowSubrole: NSString! let NSAccessibilityFullScreenButtonSubrole: NSString! let NSAccessibilityIncrementArrowSubrole: NSString! let NSAccessibilityIncrementPageSubrole: NSString! let NSAccessibilityMinimizeButtonSubrole: NSString! let NSAccessibilityOutlineRowSubrole: NSString! let NSAccessibilitySearchFieldSubrole: NSString! let NSAccessibilitySecureTextFieldSubrole: NSString! let NSAccessibilityStandardWindowSubrole: NSString! let NSAccessibilitySwitchSubrole: NSString! let NSAccessibilitySystemDialogSubrole: NSString! let NSAccessibilitySystemFloatingWindowSubrole: NSString! let NSAccessibilityTableRowSubrole: NSString! let NSAccessibilityTextAttachmentSubrole: NSString! let NSAccessibilityTextLinkSubrole: NSString! let NSAccessibilityTimelineSubrole: NSString! let NSAccessibilityToggleSubrole: NSString! let NSAccessibilityToolbarButtonSubrole: NSString! let NSAccessibilityUnknownSubrole: NSString! let NSAccessibilityZoomButtonSubrole: NSString! let NSAccessibilitySortButtonSubrole: NSString! let NSAccessibilityRatingIndicatorSubrole: NSString! let NSAccessibilityContentListSubrole: NSString! let NSAccessibilityDefinitionListSubrole: NSString!

    Objective-C

    NSString *const NSAccessibilityCloseButtonSubrole; NSString *const NSAccessibilityContentListSubrole; NSString *const NSAccessibilityDecrementArrowSubrole; NSString *const NSAccessibilityDecrementPageSubrole; NSString *const NSAccessibilityDefinitionListSubrole; NSString *const NSAccessibilityDescriptionListSubrole; NSString *const NSAccessibilityDialogSubrole; NSString *const NSAccessibilityFloatingWindowSubrole; NSString *const NSAccessibilityFullScreenButtonSubrole; NSString *const NSAccessibilityIncrementArrowSubrole; NSString *const NSAccessibilityIncrementPageSubrole; NSString *const NSAccessibilityMinimizeButtonSubrole; NSString *const NSAccessibilityOutlineRowSubrole; NSString *const NSAccessibilityRatingIndicatorSubrole; NSString *const NSAccessibilitySearchFieldSubrole; NSString *const NSAccessibilitySecureTextFieldSubrole; NSString *const NSAccessibilitySortButtonSubrole; NSString *const NSAccessibilityStandardWindowSubrole; NSString *const NSAccessibilitySwitchSubrole; NSString *const NSAccessibilitySystemDialogSubrole; NSString *const NSAccessibilitySystemFloatingWindowSubrole; NSString *const NSAccessibilityTableRowSubrole; NSString *const NSAccessibilityTextAttachmentSubrole; NSString *const NSAccessibilityTextLinkSubrole; NSString *const NSAccessibilityTimelineSubrole; NSString *const NSAccessibilityToggleSubrole; NSString *const NSAccessibilityToolbarButtonSubrole; NSString *const NSAccessibilityUnknownSubrole; NSString *const NSAccessibilityZoomButtonSubrole;

    Constants

    • NSAccessibilityCloseButtonSubrole

      NSAccessibilityCloseButtonSubrole

      A window’s close button.

      Available in OS X v10.2 and later.

    • NSAccessibilityDecrementArrowSubrole

      NSAccessibilityDecrementArrowSubrole

      Decrement arrow (the down arrow in a scroll bar).

      Available in OS X v10.3 and later.

    • NSAccessibilityDecrementPageSubrole

      NSAccessibilityDecrementPageSubrole

      Decrement page (the decrement area in the scroll track of a scroll bar).

      Available in OS X v10.3 and later.

    • NSAccessibilityDescriptionListSubrole

      NSAccessibilityDescriptionListSubrole

      Description list.

      Available in OS X v10.9 and later.

    • NSAccessibilityDialogSubrole

      NSAccessibilityDialogSubrole

      Dialog.

      Available in OS X v10.3 and later.

    • NSAccessibilityFloatingWindowSubrole

      NSAccessibilityFloatingWindowSubrole

      Floating window.

      Available in OS X v10.3 and later.

    • NSAccessibilityFullScreenButtonSubrole

      NSAccessibilityFullScreenButtonSubrole

      A window’s full screen button.

      Available in OS X v10.7 and later.

    • NSAccessibilityIncrementArrowSubrole

      NSAccessibilityIncrementArrowSubrole

      Increment arrow (the up arrow in a scroll bar).

      Available in OS X v10.3 and later.

    • NSAccessibilityIncrementPageSubrole

      NSAccessibilityIncrementPageSubrole

      Increment page (the increment area in the scroll track of a scroll bar).

      Available in OS X v10.3 and later.

    • NSAccessibilityMinimizeButtonSubrole

      NSAccessibilityMinimizeButtonSubrole

      A window’s minimize button.

      Available in OS X v10.2 and later.

    • NSAccessibilityOutlineRowSubrole

      NSAccessibilityOutlineRowSubrole

      Outline row.

      Available in OS X v10.2 and later.

    • NSAccessibilitySearchFieldSubrole

      NSAccessibilitySearchFieldSubrole

      Search field.

      Available in OS X v10.3 and later.

    • NSAccessibilitySecureTextFieldSubrole

      NSAccessibilitySecureTextFieldSubrole

      Secure text field.

      Available in OS X v10.2 and later.

    • NSAccessibilityStandardWindowSubrole

      NSAccessibilityStandardWindowSubrole

      A standard window.

      Available in OS X v10.3 and later.

    • NSAccessibilitySwitchSubrole

      NSAccessibilitySwitchSubrole

      Switch.

      Available in OS X v10.9 and later.

    • NSAccessibilitySystemDialogSubrole

      NSAccessibilitySystemDialogSubrole

      System dialog (a system-generated dialog that floats on the top layer, regardless of which application is frontmost).

      Available in OS X v10.3 and later.

    • NSAccessibilitySystemFloatingWindowSubrole

      NSAccessibilitySystemFloatingWindowSubrole

      System floating window (a system-generated panel).

      Available in OS X v10.3 and later.

    • NSAccessibilityTableRowSubrole

      NSAccessibilityTableRowSubrole

      Table row.

      Available in OS X v10.2 and later.

    • NSAccessibilityTextAttachmentSubrole

      NSAccessibilityTextAttachmentSubrole

      Text attachment.

      Available in OS X v10.4 and later.

    • NSAccessibilityTextLinkSubrole

      NSAccessibilityTextLinkSubrole

      Text link.

      Available in OS X v10.4 and later.

    • NSAccessibilityTimelineSubrole

      NSAccessibilityTimelineSubrole

      Timeline.

      Available in OS X v10.5 and later.

    • NSAccessibilityToggleSubrole

      NSAccessibilityToggleSubrole

      Toggle.

      Available in OS X v10.9 and later.

    • NSAccessibilityToolbarButtonSubrole

      NSAccessibilityToolbarButtonSubrole

      A window’s toolbar button.

      Available in OS X v10.2 and later.

    • NSAccessibilityUnknownSubrole

      NSAccessibilityUnknownSubrole

      Unknown subrole.

      Available in OS X v10.2 and later.

    • NSAccessibilityZoomButtonSubrole

      NSAccessibilityZoomButtonSubrole

      A window’s zoom button.

      Available in OS X v10.2 and later.

    • NSAccessibilitySortButtonSubrole

      NSAccessibilitySortButtonSubrole

      Sort button in a table or outline view.

      Available in OS X v10.6 and later.

    • NSAccessibilityRatingIndicatorSubrole

      NSAccessibilityRatingIndicatorSubrole

      Rating indicator.

      Available in OS X v10.6 and later.

    • NSAccessibilityContentListSubrole

      NSAccessibilityContentListSubrole

      Content that is organized in a list, but is not in a list control or table view.

      Available in OS X v10.6 and later.

    • NSAccessibilityDefinitionListSubrole

      NSAccessibilityDefinitionListSubrole

      A content list in a webpage.

      Available in OS X v10.6 and later.

  • Standard actions that accessibility objects can perform.

    Declaration

    Swift

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

    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

      Simulates pressing Return in the object, such as a text field.

      Available in OS X v10.2 and later.

    • NSAccessibilityDecrementAction

      NSAccessibilityDecrementAction

      Decrements the value of the object.

      Available in OS X v10.2 and later.

    • NSAccessibilityDeleteAction

      NSAccessibilityDeleteAction

      Deletes the value of the object.

      Available in OS X v10.4 and later.

    • NSAccessibilityIncrementAction

      NSAccessibilityIncrementAction

      Increments the value of the object.

      Available in OS X v10.2 and later.

    • NSAccessibilityPickAction

      NSAccessibilityPickAction

      Selects the object, such as a menu item.

      Available in OS X v10.2 and later.

    • NSAccessibilityPressAction

      NSAccessibilityPressAction

      Simulates clicking an object, such as a button.

      Available in OS X v10.2 and later.

    • NSAccessibilityCancelAction

      NSAccessibilityCancelAction

      Cancels the operation.

      Available in OS X v10.3 and later.

    • NSAccessibilityRaiseAction

      NSAccessibilityRaiseAction

      Simulates bringing a window forward by clicking on its title bar.

      Available in OS X v10.3 and later.

    • NSAccessibilityShowAlternateUIAction

      NSAccessibilityShowAlternateUIAction

      Shows alternate UI; for example, during a mouse-hover event.

      Available in OS X v10.9 and later.

    • NSAccessibilityShowDefaultUIAction

      NSAccessibilityShowDefaultUIAction

      Shows original or default UI; for example, during a mouse-hover event.

      Available in OS X v10.9 and later.

    • NSAccessibilityShowMenuAction

      NSAccessibilityShowMenuAction

      Simulates showing a menu by clicking on it.

      Available in OS X v10.4 and later.

  • Notifications that are sent to observing assistive applications when focus-change events occur. The notifications are sent using the NSAccessibilityPostNotification function instead of an NSNotificationCenter object.

    Declaration

    Swift

    let NSAccessibilityMainWindowChangedNotification: NSString! let NSAccessibilityFocusedWindowChangedNotification: NSString! let NSAccessibilityFocusedUIElementChangedNotification: NSString!

    Objective-C

    NSString *const NSAccessibilityMainWindowChangedNotification; NSString *const NSAccessibilityFocusedWindowChangedNotification; NSString *const NSAccessibilityFocusedUIElementChangedNotification;

    Constants

    • NSAccessibilityMainWindowChangedNotification

      NSAccessibilityMainWindowChangedNotification

      Posted after the main window has changed.

      Available in OS X v10.2 and later.

    • NSAccessibilityFocusedWindowChangedNotification

      NSAccessibilityFocusedWindowChangedNotification

      Posted after the key window has changed.

      Available in OS X v10.2 and later.

    • NSAccessibilityFocusedUIElementChangedNotification

      NSAccessibilityFocusedUIElementChangedNotification

      Posted after the element has gained focus.

      Available in OS X v10.2 and later.

  • Notifications that are sent to observing assistive applications when window-change events occur. The notifications are sent using the NSAccessibilityPostNotification function instead of an NSNotificationCenter object.

    Declaration

    Swift

    let NSAccessibilityWindowCreatedNotification: NSString! let NSAccessibilityWindowDeminiaturizedNotification: NSString! let NSAccessibilityWindowMiniaturizedNotification: NSString! let NSAccessibilityWindowMovedNotification: NSString! let NSAccessibilityWindowResizedNotification: NSString!

    Objective-C

    NSString *const NSAccessibilityWindowCreatedNotification; NSString *const NSAccessibilityWindowDeminiaturizedNotification; NSString *const NSAccessibilityWindowMiniaturizedNotification; NSString *const NSAccessibilityWindowMovedNotification; NSString *const NSAccessibilityWindowResizedNotification;

    Constants

    • NSAccessibilityWindowCreatedNotification

      NSAccessibilityWindowCreatedNotification

      Posted after a new window has appeared.

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowDeminiaturizedNotification

      NSAccessibilityWindowDeminiaturizedNotification

      Posted after the window has been restored to full size from the Dock.

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowMiniaturizedNotification

      NSAccessibilityWindowMiniaturizedNotification

      Posted after the window has been put in the Dock.

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowMovedNotification

      NSAccessibilityWindowMovedNotification

      Posted after the window has moved.

      Available in OS X v10.2 and later.

    • NSAccessibilityWindowResizedNotification

      NSAccessibilityWindowResizedNotification

      Posted after the window has changed size.

      Available in OS X v10.2 and later.

  • Notifications that are sent to observing assistive applications when application events occur. The notifications are sent using the NSAccessibilityPostNotification function instead of an NSNotificationCenter object.

    Declaration

    Swift

    let NSAccessibilityApplicationActivatedNotification: NSString! let NSAccessibilityApplicationDeactivatedNotification: NSString! let NSAccessibilityApplicationHiddenNotification: NSString! let NSAccessibilityApplicationShownNotification: NSString!

    Objective-C

    NSString *const NSAccessibilityApplicationActivatedNotification; NSString *const NSAccessibilityApplicationDeactivatedNotification; NSString *const NSAccessibilityApplicationHiddenNotification; NSString *const NSAccessibilityApplicationShownNotification;

    Constants

    • NSAccessibilityApplicationActivatedNotification

      NSAccessibilityApplicationActivatedNotification

      Posted after the application has activated.

      Available in OS X v10.2 and later.

    • NSAccessibilityApplicationDeactivatedNotification

      NSAccessibilityApplicationDeactivatedNotification

      Posted after the application has deactivated.

      Available in OS X v10.2 and later.

    • NSAccessibilityApplicationHiddenNotification

      NSAccessibilityApplicationHiddenNotification

      Posted after the application has been hidden.

      Available in OS X v10.2 and later.

    • NSAccessibilityApplicationShownNotification

      NSAccessibilityApplicationShownNotification

      Posted after the application has been shown.

      Available in OS X v10.2 and later.

  • Notifications that are sent to observing assistive applications when drawer and sheet events occur. The notifications are sent using the NSAccessibilityPostNotification function instead of an NSNotificationCenter object.

    Declaration

    Swift

    let NSAccessibilityDrawerCreatedNotification: NSString! let NSAccessibilitySheetCreatedNotification: NSString!

    Objective-C

    NSString *const NSAccessibilityDrawerCreatedNotification; NSString *const NSAccessibilitySheetCreatedNotification;

    Constants

    • NSAccessibilityDrawerCreatedNotification

      NSAccessibilityDrawerCreatedNotification

      Posted after a drawer has appeared.

      Available in OS X v10.3 and later.

    • NSAccessibilitySheetCreatedNotification

      NSAccessibilitySheetCreatedNotification

      Posted after a sheet has appeared.

      Available in OS X v10.3 and later.

  • Notifications that are sent to observing assistive applications when certain element-related events occur. Note that these notifications are not sent from every element. The notifications are sent using the NSAccessibilityPostNotification function instead of an NSNotificationCenter object.

    Declaration

    Swift

    let NSAccessibilityCreatedNotification: NSString! let NSAccessibilityMovedNotification: NSString! let NSAccessibilityResizedNotification: NSString! let NSAccessibilityTitleChangedNotification: NSString! let NSAccessibilityUIElementDestroyedNotification: NSString! let NSAccessibilityValueChangedNotification: NSString!

    Objective-C

    NSString *const NSAccessibilityCreatedNotification; NSString *const NSAccessibilityMovedNotification; NSString *const NSAccessibilityResizedNotification; NSString *const NSAccessibilityTitleChangedNotification; NSString *const NSAccessibilityUIElementDestroyedNotification; NSString *const NSAccessibilityValueChangedNotification;

    Constants

    • NSAccessibilityCreatedNotification

      NSAccessibilityCreatedNotification

      Posted after the element has been created.

      Available in OS X v10.4 and later.

    • NSAccessibilityMovedNotification

      NSAccessibilityMovedNotification

      Posted after the element has been moved.

      Available in OS X v10.4 and later.

    • NSAccessibilityResizedNotification

      NSAccessibilityResizedNotification

      Posted after the element has been resized.

      Available in OS X v10.4 and later.

    • NSAccessibilityTitleChangedNotification

      NSAccessibilityTitleChangedNotification

      Posted after the title has changed.

      Available in OS X v10.4 and later.

    • NSAccessibilityUIElementDestroyedNotification

      NSAccessibilityUIElementDestroyedNotification

      Posted after the element has been destroyed.

      Available in OS X v10.2 and later.

    • NSAccessibilityValueChangedNotification

      NSAccessibilityValueChangedNotification

      Posted after the element’s value has changed.

      Available in OS X v10.2 and later.

  • Notifications that are sent to observing assistive applications when certain events occur. The notifications are sent using the NSAccessibilityPostNotification or NSAccessibilityPostNotificationWithUserInfo functions instead of an NSNotificationCenter object.

    Declaration

    Swift

    let NSAccessibilityHelpTagCreatedNotification: NSString! let NSAccessibilityRowCountChangedNotification: NSString! let NSAccessibilitySelectedChildrenChangedNotification: NSString! let NSAccessibilitySelectedColumnsChangedNotification: NSString! let NSAccessibilitySelectedRowsChangedNotification: NSString! let NSAccessibilitySelectedTextChangedNotification: NSString! let NSAccessibilityRowExpandedNotification: NSString! let NSAccessibilityRowCollapsedNotification: NSString! let NSAccessibilitySelectedCellsChangedNotification: NSString! let NSAccessibilityUnitsChangedNotification: NSString! let NSAccessibilitySelectedChildrenMovedNotification: NSString! let NSAccessibilityLayoutChangedNotification: NSString! let NSAccessibilityAnnouncementRequestedNotification: NSString!

    Objective-C

    NSString *const NSAccessibilityHelpTagCreatedNotification; NSString *const NSAccessibilityRowCountChangedNotification; NSString *const NSAccessibilitySelectedChildrenChangedNotification; NSString *const NSAccessibilitySelectedColumnsChangedNotification; NSString *const NSAccessibilitySelectedRowsChangedNotification; NSString *const NSAccessibilitySelectedTextChangedNotification; NSString *const NSAccessibilityRowExpandedNotification; NSString *const NSAccessibilityRowCollapsedNotification; NSString *const NSAccessibilitySelectedCellsChangedNotification; NSString *const NSAccessibilityUnitsChangedNotification; NSString *const NSAccessibilitySelectedChildrenMovedNotification; NSString *const NSAccessibilityLayoutChangedNotification; NSString *const NSAccessibilityAnnouncementRequestedNotification;

    Constants

    • NSAccessibilityHelpTagCreatedNotification

      NSAccessibilityHelpTagCreatedNotification

      Posted after a help tag has appeared.

      Available in OS X v10.4 and later.

    • NSAccessibilityRowCountChangedNotification

      NSAccessibilityRowCountChangedNotification

      Posted after a row has been added or deleted.

      Available in OS X v10.4 and later.

    • NSAccessibilitySelectedChildrenChangedNotification

      NSAccessibilitySelectedChildrenChangedNotification

      Posted after selected child elements have changed.

      Available in OS X v10.4 and later.

    • NSAccessibilitySelectedColumnsChangedNotification

      NSAccessibilitySelectedColumnsChangedNotification

      Posted after selected columns have changed.

      Available in OS X v10.4 and later.

    • NSAccessibilitySelectedRowsChangedNotification

      NSAccessibilitySelectedRowsChangedNotification

      Posted after selected rows have changed.

      Available in OS X v10.4 and later.

    • NSAccessibilitySelectedTextChangedNotification

      NSAccessibilitySelectedTextChangedNotification

      Posted after selected text has changed.

      Available in OS X v10.4 and later.

    • NSAccessibilityRowExpandedNotification

      NSAccessibilityRowExpandedNotification

      Posted after the row has expanded.

      Available in OS X v10.6 and later.

    • NSAccessibilityRowCollapsedNotification

      NSAccessibilityRowCollapsedNotification

      Posted after the row has collapsed.

      Available in OS X v10.6 and later.

    • NSAccessibilitySelectedCellsChangedNotification

      NSAccessibilitySelectedCellsChangedNotification

      Posted after selected cells in a cell-based table have changed.

      Available in OS X v10.6 and later.

    • NSAccessibilityUnitsChangedNotification

      NSAccessibilityUnitsChangedNotification

      Posted after the units in a layout area have changed.

      Available in OS X v10.6 and later.

    • NSAccessibilitySelectedChildrenMovedNotification

      NSAccessibilitySelectedChildrenMovedNotification

      Posted after selected items in a layout area have moved.

      Available in OS X v10.6 and later.

    • NSAccessibilityLayoutChangedNotification

      NSAccessibilityLayoutChangedNotification

      Posted after the UI changes in a way that requires the attention of an assistive application. This notification should be accompanied by a userInfo dictionary with the key NSAccessibilityUIElementsKey and an array containing the UI elements that have been added or changed.

      Available in OS X v10.9 and later.

    • NSAccessibilityAnnouncementRequestedNotification

      NSAccessibilityAnnouncementRequestedNotification

      Posted by an app to request that an assistive application make an announcement to the user. This notification requires a userInfo dictionary with the key NSAccessibilityAnnouncementKey and a localized string containing the announcement. To help an assistive app determine the importance of the announcement, add the appropriate NSAccessibilityPriorityKey to the userInfo dictionary.

      Available in OS X v10.7 and later.

  • This is a key used by the userInfo dictionary of an NSAccessibilityException.

    Declaration

    Swift

    let NSAccessibilityErrorCodeExceptionInfo: NSString!

    Objective-C

    NSString *const NSAccessibilityErrorCodeExceptionInfo;

    Constants

    • NSAccessibilityErrorCodeExceptionInfo

      NSAccessibilityErrorCodeExceptionInfo

      Integer error code used for debugging (as an NSNumber).

      Available in OS X v10.2 and later.

  • These keys are used by the userInfo dictionary of an accessibility notification posted by NSAccessibilityPostNotificationWithUserInfo.

    Declaration

    Swift

    let NSAccessibilityUIElementsKey: NSString! let NSAccessibilityPriorityKey: NSString! let NSAccessibilityAnnouncementKey: NSString!

    Objective-C

    NSString *const NSAccessibilityUIElementsKey; NSString *const NSAccessibilityPriorityKey; NSString *const NSAccessibilityAnnouncementKey;

    Constants

    • NSAccessibilityUIElementsKey

      NSAccessibilityUIElementsKey

      An array of elements that are associated with the notification. For example, the NSAccessibilityLayoutChangedNotification should use this key to identify the elements that have been added or changed.

      Available in OS X v10.9 and later.

    • NSAccessibilityPriorityKey

      NSAccessibilityPriorityKey

      A priority level that can help an assistive app determine how to handle the corresponding notification (required for NSAccessibilityAnnouncementRequestedNotification). For example, VoiceOver uses the priority to decide whether to speak an announcement immediately or after the current speech finishes.

      Available in OS X v10.9 and later.

    • NSAccessibilityAnnouncementKey

      NSAccessibilityAnnouncementKey

      The announcement, as a localized string. This key is required for NSAccessibilityAnnouncementRequestedNotification and should be used in conjunction with NSAccessibilityPriorityKey to help assistive apps determine the importance of the announcement.

      Available in OS X v10.7 and later.

  • Values for specifying the priority level of a notification.

    Declaration

    Swift

    enum NSAccessibilityPriorityLevel : Int { case Low case Medium case High }

    Objective-C

    enum { NSAccessibilityPriorityLow = 10, NSAccessibilityPriorityMedium = 50, NSAccessibilityPriorityHigh = 90 };

    Constants

    • Low

      NSAccessibilityPriorityLow

      The notification is a low priority.

      Available in OS X v10.9 and later.

    • Medium

      NSAccessibilityPriorityMedium

      The notification is a medium priority.

      Available in OS X v10.9 and later.

    • High

      NSAccessibilityPriorityHigh

      The notification is a high priority.

      Available in OS X v10.9 and later.