Sends a notification and an optional user
dictionary to any observing assistive applications.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
static func post(element: Any, notification: NSAccessibility.Notification, userInfo: [NSAccessibility.Notification User Info Key : Any]?)
Discussion
Sends notification
and user
to any assistive applications that have registered to receive the notification from the UI object element
in your app. The user
dictionary values are restricted to the same values to which accessibility attributes are restricted (for a list of these values, see Attributes). The user
dictionary can also be nil
(most accessibility notifications don’t require it).