Making VoiceOver see changes
Making VoiceOver see changes
- Subject: Making VoiceOver see changes
- From: Michael Ash <email@hidden>
- Date: Wed, 8 Nov 2006 15:23:02 -0500
I'm adding Accessibility and VoiceOver support to a custom control.
I've done well with it so far, except for getting VoiceOver to see
changes made to the control. This particular control has UI elements
inside a larger view, and they can be moved horizontally using the
arrow keys. My trouble is that VO does not re-read the value of the
element, nor does it move the focus box to track it.
I've tried to tell VO that my element is moving around and changing,
using the following code and many variations on same:
NSAccessibilityPostNotification( self,
NSAccessibilityResizedNotification );
NSAccessibilityPostNotification( self,
NSAccessibilityMovedNotification );
NSAccessibilityPostNotification( self,
NSAccessibilityValueChangedNotification );
I've verified that the currently focused accessibility element is
self and that this code is being executed. But no matter what I try,
VO does absolutely nothing. If I manually move the focus to another
element and then back, VO reflects the updated position and value.
It's obvious that this is possible. NSSlider, for example, makes VO
re-read its value when changing it using the arrow keys. But I don't
know what the secret sauce is to make it happen.
I found a post on this list with basically the same problem here:
http://lists.apple.com/archives/accessibility-dev/2006/Jul/
msg00030.html
Unfortunately I didn't find an answer, either to that post or
anywhere else I could think to look.
Does anyone know how to make this happen? Any help is greatly
appreciated.
Mike Ash
Rogue Amoeba Software
_______________________________________________
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