Re: kAXRoleDescriptionAttribute
Re: kAXRoleDescriptionAttribute
- Subject: Re: kAXRoleDescriptionAttribute
- From: Mike Engber <email@hidden>
- Date: Mon, 26 Nov 2012 13:57:12 -0800
On Nov 26, 2012, at 1:02 PM, Nicole Blumhorst <email@hidden> wrote:
> Hey all! I am really really new to mac accessibility, so I was just trying to find a list of all of the available strings that the kAXRoleDescriptionAttribute could be. I have tried looking online and came up with nothing, so I was hoping someone could help me out. Thanks!
I'm assuming you're trying to figure out what to return for kAXRoleDescriptionAttribute?
If so, the function, NSAccessibilityRoleDescription, is the ticket.
If not:
Role descriptions are localizable strings describing a role.
You shouldn't write code that makes assumptions about the contents of these strings.
You also shouldn't be inventing your own roles (needing their own descriptions).
Given a role (they are enumerated in AXRoleConstants.h) and subrole (possibly nil) you can obtain their description using NSAccessibilityRoleDescription.
-ME
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden