Cocoa in Carbon accessibility
Cocoa in Carbon accessibility
- Subject: Cocoa in Carbon accessibility
- From: Uli Kusterer <email@hidden>
- Date: Wed, 2 Jun 2010 15:14:37 +0200
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