Re: Making status events accessible
Re: Making status events accessible
- Subject: Re: Making status events accessible
- From: Mike Engber <email@hidden>
- Date: Mon, 12 Jun 2006 10:03:58 -0700
On Jun 9, 2006, at 5:56 PM, Tom Bunch wrote:
Well, I'll take a stab at answering, but I'm not sure that I
understood your question. It sounds like you have something in
your GUI that maintains state and you want to notify any AX
observers when the state changes and make the new value
accessible. If so, I believe what you want to do is:
- send out an NSAccessibilityValueChangedNotification with
NSAccessibilityPostNotification()
- call [myView accessibilitySetValue:newValue
forAttribute:NSAccessibilityValueAttribute]
Just send the notification. Do not call
accessibilitySetValue:forAttribute:. If an attribute's value changes,
all you need to do is notify about the change. When its value is
subsequently requested the new value should get returned.
accessibilitySetValue:forAttribute: is triggered by an assistive
app's request to change an attribute's value. It only works for
attributes that are settable settable. There are attributes whose
value changes (notifications sent) that are not settable - i.e.
cannot be changed by the user.
-ME
_______________________________________________
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