Re: Slider's allowed values attribute?
Re: Slider's allowed values attribute?
- Subject: Re: Slider's allowed values attribute?
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 23 Apr 2006 14:32:14 -0400
- Thread-topic: Slider's allowed values attribute?
on 2006-04-23 12:23 PM, Eric Schlegel at email@hidden wrote:
> On Apr 23, 2006, at 4:38 AM, Bill Cheeseman wrote:
>
>> The AXAllowedValues attribute of a slider returns an array of
>> strings saying
>> "not yet implemented." Was this overlooked, or is it just not there
>> yet?
>
> Carbon or Cocoa? I assume you must be referring to Cocoa, since I
> don't find any evidence of AXAllowedValues even being supported in
> the Carbon slider. Actually, it looks like AXAllowedValues _was_
> implemented in NSSlider for Tiger. I don't know why you're not seeing
> it come through properly, but I think you should file a bug about
> that. We do already have a Carbon bug requesting matching
> implementation for the Carbon slider.
I did some more experimenting, and it seems to be my problem, not Apple's.
But I don't know why.
When I test with PreFab UI Browser, this issue seems to apply to all Cocoa
applications implementing sliders that have incremental settings. I see
"need to implement" (not "not yet implemented"; I misspoke) as the value of
all of the array items in every Cocoa application implementing such a
slider. For example, the two sliders in the Keyboard tab of the Keyboard &
Mouse pane of System Preferences.
However, I just wrote a GUI Scripting script to test this. Run this script
with the Keyboard tab open, and it returns a proper array of numbers:
activate application "System Preferences"
tell application "System Events"
tell process "System Preferences"
get value of attribute "AXAllowedValues" of slider 1 ¬
of tab group 1 of window "Keyboard & Mouse"
end tell
end tell
--> returns: {0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0}
Also, when I run another accessibility browser that I happen to have a copy
of, it returns the same values that the above script returns.
So I have to conclude that this is my issue, not Apple's. But I just ran a
global search for "need to implement" on my UI Browser source code, and I'm
not finding it. I wonder where that string is coming from?
I guess I'll have to dig deeper into my own code.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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