Re: Lightweight accessibility?
Re: Lightweight accessibility?
- Subject: Re: Lightweight accessibility?
- From: Uli Kusterer <email@hidden>
- Date: Sat, 1 Dec 2007 11:52:58 +0100
Am 29.11.2007 um 18:50 schrieb James Dempsey:
As a full screen user interface, is this something where there is a
lot of user interaction with controls, or something sort of Front
Row-like where users navigate with arrow keys to drill down, select
items, etc.? If it is the latter, it should not be overly difficult
to implement accessibility. If it is the former, with many custom
controls, it will be more difficult.
It is FrontRow-like, but doesn't use NSView or HIView or anything
for the individual elements. All hand-rolled OpenGL 2D stuff. There's
an HIView somewhere at the outer level.
1. You have an internal object model for the various objects that
draw themselves.
In this case, you can use the Dicey sample source code on ADC to
show how you would make objects that know their own info (value,
position, size), and have the outer view report them as children.
What happens if some of these objects go away? Will they have to be
CFTypes or something so an outer script doesn't refer to an object
that's already gone away?
2. You have one big view which does all of the drawing
In this case, you do need to create a custom 'FauxUIElement' object
with the appropriate information.
The food pyramid example is the "ImageMap" example, which has an
already implemented FauxUIElement superclass you can grab. (Please
use the superclass - the -hash and -isEqual function is important to
get correct, and that sample class does the right thing already).
Once you have the structure reporting correctly, if the user can
navigate around using the keyboard, you will want to use the
function NSAccessibilityPostNotification() to send the
NSAccessibilityFocusedUIElementChangedNotification when the focus
changes from element to element.
I saw that code, but it uses NSView. Is there an HIView version? Or
even better, is there a way to do this that can work with an HIView
now, but won't be too troublesome to port to work in an NSOpenGLView
eventually?
Cheers,
-- M. Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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