Re: Role descriptions for custom controls
Re: Role descriptions for custom controls
- Subject: Re: Role descriptions for custom controls
- From: Ricky Sharp <email@hidden>
- Date: Mon, 03 Jul 2006 12:54:55 -0500
On Monday, July 03, 2006, at 12:17PM, David Niemeijer <email@hidden> wrote:
>1) You should be able to use the accessibility inspector to verify
>whether a proper role description is provided by the super class (I
>am not a Cocoa program so would not know).
Good point; I'll definitely check that tonight.
>2) In Carbon, and perhaps also in Cocoa you can use
>CFStringRef HICopyAccessibilityRoleDescription(CFStringRef inRole,
>CFStringRef inSubrole);
>Given the role and subrole this should deliver a localized role
>description. There may be a Ccoa equivalent or because NSString and
>CFString are exchangeable you could probably use this carbon function.
Excellent. Yes, CFString and NSString are toll-free-bridged. Also, my Cocoa app already links to Carbon.framework for a few things, so not a problem if I need to use the HI APIs.
Thanks!
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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