No overview available.
SDKs
- macOS 10.9+
- Xcode 10.0+
Framework
- App
Kit
Declaration
struct NSAccessibility
No overview available.
SDKs
Framework
struct NSAccessibility
static let Error Code Exception Info: StringAn integer error code used for debugging (as an NSNumber).
static func post(element: Any, notification: NSAccessibility .Notification)Sends a notification to any observing assistive applications.
static func post(element: Any, notification: NSAccessibility .Notification, user Info: [NSAccessibility .Notification User Info Key : Any]?)Sends a notification and an optional user dictionary to any observing assistive applications.
static func raise Bad Argument Exception(Any!, NSAccessibility .Attribute!, Any!)Raises an error if the parameter is the wrong type or has an illegal value
static func screen Point(from View: NSView, point: NSPoint) -> NSPointReturns the point in screen coordinates.
static func screen Rect(from View: NSView, rect: NSRect) -> NSRectReturns the frame in screen coordinates.
static func set May Contain Protected Content(Bool) -> BoolSets whether the app may have protected content.
static func unignored Ancestor(of: Any) -> Any?Returns an unignored accessibility object, ascending the hierarchy if necessary.
static func unignored Children(from: [Any]) -> [Any]Returns a list of unignored accessibility objects, descending the hierarchy if necessary.
static func unignored Children For Only Child(from: Any) -> [Any]Returns a list of unignored accessibility objects, descending the hierarchy if necessary.
static func unignored Descendant(of: Any) -> Any?Returns an unignored accessibility object, descending the hierarchy if necessary.