Re: Counting children of menubar
Re: Counting children of menubar
- Subject: Re: Counting children of menubar
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 05 Nov 2002 05:36:16 -0500
on 02-11-04 6:05 PM, Jeffrey Mattox at email@hidden wrote:
>
Please post some details about your workarounds.
>
>
Jeff
>
>
>
> on 02-11-04 5:21 PM, Guy Fullerton at email@hidden wrote:
>
>
>
>> On 11/2/02 2:37 PM, "Bill Cheeseman" <email@hidden> wrote:
>
>>
>
>>> In my assistive application, the AXUIElementGetAttributeValueCount
>
>>> function
>
>>> returns kAXErrorNotImplemented when called for attribute "AXChildren" of
>
>>> element AXMenuBar.
>
>>
>
>> This is a known issue that we've already fixed for an upcoming release.
>
>
>
> Thanks for the info. I've found easy workarounds that let me get the same
>
> information without using the functions in question.
I'm writing a Cocoa framework to wrap the Carbon assistive application APIs.
It's just about done.
I couldn't use the Carbon AXUIElementGetAttributeValueCount or
AXUIElementCopyAttributeValues function when getting the children of a
UIElement because of this bug.
Instead, to get the count of children, I use AXUIElementCopyAttributeValue
to load the AXChildren attribute (an array value) itself, then use an array
function to count the items in the array.
And to get the children, I use AXUIElementCopyAttributeValue to load the
AXChildren array as above, then use the count workaround and an array
function to get the subarray from index for length maxItems.
These workarounds are so easy that I am led to believe the
AXUIElementGetAttributeValueCount and AXUIElementCopyAttributeValues
functions are merely convenience functions that work the same way.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.