The NSAccessibilityElement class provides the basic infrastructure required to interact with an accessibility client. Create subclasses of the NSAccessibilityElement class to represent any of your accessibility elements that do not inherit from NSView or from one of the standard AppKit controls. This subclass will represent your element in the accessibility hierarchy. Additionally, your subclass should adopt one of the role-based protocols. For a list of role-based protocols, see NSAccessibility.


Supporting the Accessibility Hierarchy

func accessibilityAddChildElement(NSAccessibilityElement)

Adds a child to the element in the accessibility hierarchy.

class func element(withRole: String, frame: NSRect, label: String?, parent: Any?)

Instantiates and configures a new accessibility element.


Inherits From