How to support voiceover in an NSView subclass that is spontaneously changing
How to support voiceover in an NSView subclass that is spontaneously changing
- Subject: How to support voiceover in an NSView subclass that is spontaneously changing
- From: George Nachman <email@hidden>
- Date: Thu, 13 Jan 2011 22:36:30 -0800
Hi accessibility-dev,
I have a custom NSView subclass that displays text received from a server. Text comes in unpredictably--sometimes a bunch quickly, sometimes slowly. My goal is to get voiceover to work properly with this. So far what I've done is to post a NSAccessibilityValueChangedNotification notification whenever new text is received and to have -accessibilityAttributeValue: return whatever text is new since its last call as a NSAccessibilityValueDescriptionAttribute (I'm using NSAccessibilityValueIndicatorRole as my NSAccessibilityRoleAttribute). This works, but the problem is that if I get two updates in quick succession, the voiceover for the first one is aborted and the second one is played instead.
I could rate limit them, but to do so optimally would require trying to guess how long voiceover will take to speak a phrase, and I'm sure that's nontrivial. Any better ideas? Can I do this by fiddling with the accessibility hierarchy somehow?
Thanks!
-George
_______________________________________________
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