Minimum events and attributes to support to make a custom view accessible
Minimum events and attributes to support to make a custom view accessible
- Subject: Minimum events and attributes to support to make a custom view accessible
- From: David Niemeijer <email@hidden>
- Date: Tue, 14 Dec 2004 22:34:25 +0100
Hi,
I am working on making a custom view with nested custom views
accessible and am running into more problems than I would want. The
documentation still seems to be pretty sparse. I found:
http://developer.apple.com/releasenotes/Accessibility/AssistiveAPI.html
http://developer.apple.com/documentation/Carbon/Conceptual/MakingAppsAccessible/index.html
+
CarbonEvents.h
AXConstants.h
I could not find any sample code illustrating making a Carbon
application accessible in the sample code area for accessibility
<http://developer.apple.com/samplecode/Accessibility/index-date.html>,
but perhaps one or more of the regular samples shows this. If so
please let me know which one(s) to look at.
Anyway, I figured that it would be best to start out by supporting a
minimum set of carbon accessibility events and a minimum number of
attributes. When I have that working I can add more goodies. Could
anyone here tell me what the minimum would be to make applications
such as UIElement Inspector and UI Browser at least provide basic
access to my custom HIViews?
With what I implemented so far I get my custom views still reported
as unknown in UI browser, though it does show the proper hierarchy.
so my guess is I may still be missing some vital attribute (I
currently support kAXRoleAttribute, kAXRoleDescriptionAttribute,
kAXChildrenAttribute).
I am also still unsure about how to use
AXUIElementCreateWithHIObjectAndIdentifier. If I am asked for a list
of my children I can call this on their HIViews and add that to a
CFArray to pass back (or should I ask them somehow for their
AXUIElementRef?). If I am later again requested for my children do I
need to give back the exact same AXUIElementRefs or can I make new
ones by calling AXUIElementCreateWithHIObjectAndIdentifier again?
If I am asked about my parent, should I get my superview and call
AXUIElementCreateWithHIObjectAndIdentifier to get an AXUIElementRef?
Or, should I ask the superview somehow for it and then pass that back
if my kAXParentAttribute is requested?
Thanks,
david.
_______________________________________________
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