Re: Cocoa in Carbon accessibility
Re: Cocoa in Carbon accessibility
- Subject: Re: Cocoa in Carbon accessibility
- From: Guy Fullerton <email@hidden>
- Date: Wed, 2 Jun 2010 11:34:29 -0700
On Jun 2, 2010, at 7:46 AM, James Dempsey wrote:
> In general, when mixing Cocoa and Carbon, accessibility should work pretty seamlessly for the combinations that the frameworks support:
> 1. Carbon windows in a Cocoa app
> 2. Cocoa windows in a Carbon app (supported in 10.5 and later)
Just one minor correction:
> 3. Carbon HIViews in a Cocoa window using HICocoaView (supported in 10.5 and later)
>
> Carbon windows don't support hosting Cocoa views, so I would not expect that to work.
The Carbon & Cocoa details in those last two items should be reversed. We support Cocoa views in Carbon windows (including Accessibility support) using HICocoaView.
(There isn't API support for Carbon views in Cocoa windows.)
>
> I hope this helps.
>
> -James
>
> On Jun 2, 2010, at 6:14 AM, Uli Kusterer wrote:
>
>> Hi,
>>
>> I'm trying to make a part of an app accessible. Essentially, it's a custom HIView that contains other items (which are not HIViews, but are conceptually views). Since I want to move this whole thing to Cocoa eventually, I'd like to implement the objects returned to accessibility to represent the "conceptual views" as NSObject instances, so I can just re-use them when I move to NSView.
>>
>> Is this possible? Do you expect this to work? Is there anything special I have to do to make this work? I've tried it, by overriding kEventAccessibleGetChildAtPoint and kEventAccessibleGetNamedAttribute (kAXRoleAttribute, kAXRoleDescriptionAttribute, kAXChildrenAttribute, kAXTitleAttribute) and just returning the Cocoa objects (since they're CFTypes, like AXObjects and HIObjects), but for some reason that makes the whole parent view no longer show up in accessibility.
>>
>> -- Uli Kusterer
>> "The Witnesses of TeachText are everywhere..."
>>
>>
>>
>> _______________________________________________
>> 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
>
> --------------------------------------------------
> James Dempsey
> AppKit Engineering
> Apple
> email@hidden
>
>
>
> _______________________________________________
> 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
_______________________________________________
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