Function

NSAccessibilityRoleDescriptionForUIElement

Returns a standard role description for a user interface element.

Declaration

NSString * NSAccessibilityRoleDescriptionForUIElement(id element);

Discussion

This function is like the NSAccessibilityRoleDescription function, except that it queries element to get the role and subrole. The NSAccessibilityRoleDescription function is more efficient, but this function is useful for accessorizing base classes so that they properly handle derived classes, which may override the subrole or even the role.

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
NSAccessibilityRoleDescription

Returns a standard description for a role and subrole.

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.