Function

NSAccessibilityRoleDescription

Returns a standard description for a role and subrole.

Declaration

NSString * NSAccessibilityRoleDescription(NSAccessibilityRole role, NSAccessibilitySubrole subrole);

Discussion

You should pass nil to this function if there is no subrole. This function returns a description of a standard role. For example, if you implement a button widget that does not inherit from NSButton, you should use this function to return a localized role description matching that returned by a standard button.

See Also

Convenience Functions

NSAccessibilityActionDescription

Returns a standard description for an action.

NSAccessibilityPostNotification

Sends a notification to any observing assistive applications.

NSAccessibilityPostNotificationWithUserInfo

Sends a notification and an optional userInfo dictionary to any observing assistive applications.

NSAccessibilityRaiseBadArgumentException

Raises an error if the parameter is the wrong type or has an illegal value

Deprecated
NSAccessibilityRoleDescriptionForUIElement

Returns a standard role description for a user interface element.

NSAccessibilitySetMayContainProtectedContent

Sets whether the app may have protected content.

NSAccessibilityUnignoredChildren

Returns a list of unignored accessibility objects, descending the hierarchy if necessary.

NSAccessibilityUnignoredChildrenForOnlyChild

Returns a list of unignored accessibility objects, descending the hierarchy if necessary.

NSAccessibilityUnignoredDescendant

Returns an unignored accessibility object, descending the hierarchy if necessary.

NSAccessibilityUnignoredAncestor

Returns an unignored accessibility object, ascending the hierarchy if necessary.

NSAccessibilityFrameInView

Returns the frame in screen coordinates.

NSAccessibilityPointInView

Returns the point in screen coordinates.