Re: selecting NSPopUpButton control with Accessibility API
Re: selecting NSPopUpButton control with Accessibility API
- Subject: Re: selecting NSPopUpButton control with Accessibility API
- From: James Dempsey <email@hidden>
- Date: Mon, 8 Oct 2007 14:51:05 -0700
On Oct 8, 2007, at 2:08 PM, aldo kurnia wrote:
What did I do wrong and how can I select one of the menu items on
the PopUpButton?
Any help would be appreciated as I'm new to Mac development
and couldn't find any answer anywhere else.
Thanks!!
For a popup button, use the AXPress action to pop it up. At that
point the children of the popup button should contain one child - the
AXMenu that has popped up. You should be able to traverse through its
AXMenuItems, and use the AXPress action of the menu item to select it.
Usually AXShowMenu displays the contextual menu of an element. It
seems like this is an inconsistency when using the AXShowMenu action.
Welcome to Mac development by the way. Sometimes when asking
questions on an Apple list, you'll get a response back like "please
file a bug about that."
You can file bugs with a free Apple Developer Connection membership.
Details are at:
http://developer.apple.com/bugreporter/
Feel free to give the bug reporter a try - and please file a bug about
the fact that the AXShowMenu pops up the menu of a popup button, but
the menu does not appear as a child of the popup button element.
Thanks!
-James
--------------------------------------------------
James Dempsey
AppKit Engineering
Apple
email@hidden
_______________________________________________
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