Returns a standard role description for a user interface element.
- macOS 10.4+
This function is like the
NSAccessibility function, except that it queries
element to get the role and subrole. The
NSAccessibility 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.