• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Counting children of menubar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Counting children of menubar


  • Subject: Counting children of menubar
  • From: Bill Cheeseman <email@hidden>
  • Date: Sat, 02 Nov 2002 17:37:23 -0500

In my assistive application, the AXUIElementGetAttributeValueCount function
returns kAXErrorNotImplemented when called for attribute "AXChildren" of
element AXMenuBar.

Yet AXUIElementCopyAttributeValues returns an array of menus in the menubar,
and when I count the elements in the array I see the correct number of
menus.

Is this a known issue? If it works for you, is there some non-obvious trick
in getting a valid count?

At first, I thought it might be because most of my target applications' menu
bars have an iconic menu at the right end -- the keyboard input menu. But I
turned that menu off in System Preferences, and the problem still occurs.

--

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.

  • Follow-Ups:
    • Re: Counting children of menubar
      • From: Guy Fullerton <email@hidden>
  • Next by Date: Re: Counting children of menubar
  • Next by thread: Re: Counting children of menubar
  • Index(es):
    • Date
    • Thread