Re: How to support voiceover in an NSView subclass that is spontaneously changing
Re: How to support voiceover in an NSView subclass that is spontaneously changing
- Subject: Re: How to support voiceover in an NSView subclass that is spontaneously changing
- From: Peter Lübke <email@hidden>
- Date: Sat, 15 Jan 2011 18:55:50 +0100
Hi George, take a brief look at:
- Peter Am 14.01.2011 um 07:36 schrieb George Nachman: 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