Protocol

NSAccessibilityStaticText

A role-based protocol that declares the minimum interface required for an accessibility element to act as static text.

Overview

Static text elements are typically used for short pieces of text, such as headers or labels. For longer blocks of text, use the NSAccessibilityNavigableStaticText protocol. You can further enhance the adopting element by implementing any of the information properties or action methods declared in the NSAccessibility protocol.

Topics

Accessibility Methods

func accessibilityAttributedString(for: NSRange)

Returns the attributed substring for the specified range of characters.

func accessibilityValue()

Returns the text displayed by the element.

Required.

func accessibilityVisibleCharacterRange()

Returns the range of visible characters in the document.

See Also

AppKit Elements

protocol NSAccessibilityElementProtocol

A role-based protocol that declares the minimum interface required to interact with an accessibility client.

protocol NSAccessibilityButton

A role-based protocol that declares the minimum interface required for an accessibility element to act as a button.

protocol NSAccessibilityCheckBox

A role-based protocol that declares the minimum interface required for an accessibility element to act as a checkbox.

protocol NSAccessibilityImage

A role-based protocol that declares the minimum interface required for an accessibility element to act as a image.

protocol NSAccessibilityList

A role-based protocol that declares the minimum interface required for an accessibility element to act as a list view.

protocol NSAccessibilityNavigableStaticText

A role-based protocol that declares the minimum interface required for an accessibility element to act as navigable static text.

protocol NSAccessibilityOutline

A role-based protocol that declares the minimum interface required for an accessibility element to act as an outline view.

protocol NSAccessibilityProgressIndicator

A role-based protocol that declares the minimum interface required for an accessibility element to act as a progress indicator.

protocol NSAccessibilityRadioButton

A role-based protocol that declares the minimum interface required for an accessibility element to act as a radio button.

protocol NSAccessibilityRow

A role-based protocol that declares the minimum interface required for an accessibility element to act as a row for a table, list, or outline view.

protocol NSAccessibilitySlider

A role-based protocol that declares the minimum interface required for an accessibility element to act as a slider.

protocol NSAccessibilityStepper

A role-based protocol that declares the minimum interface required for an accessibility element to act as a stepper.

protocol NSAccessibilitySwitch

A role-based protocol that declares the minimum interface required for an accessibility element to act as a switch.

protocol NSAccessibilityTable

A role-based protocol that declares the minimum interface required for an accessibility element to act as a table view.