Re: Another new Bug #12253803
Re: Another new Bug #12253803
- Subject: Re: Another new Bug #12253803
- From: "William J. Cheeseman" <email@hidden>
- Date: Thu, 13 Sep 2012 09:04:05 -0400
On Sep 11, 2012, at 6:55 PM, Eric Schlegel < email@hidden> wrote: There actually is code in the Menu Manager to handle setting the SelectedChildren attribute of the menubar; i.e., it's intended to be settable. Not sure why it isn't working for you. Can you give me exact repro steps to reproduce with UI Browser?
The error can be seen by running UI Browser (30-day free trial available at < http://www.pfiddlesoft.com/uibrowser>). Select a target application (say, TextEdit) from UI Browser's Target pop-up menu button, select the AXMenuBar UI element in the main browser view, open the Attributes drawer and select the AXSelectedChildren attribute. See the bullet in the Set (for "settable") column, indicating that the selected children element is in fact settable. Then click the Edit in Window button in the Attributes drawer to open the Set Array auxiliary window. Finally, bring TextEdit to the front so you can watch its menu bar, and, in the Set Array window, Command-click to select a menu bar item (other than the Apple menu bar item) and Command-click the Set button. (Command-clicking is necessary to keep UI Browser in the background so you can watch the TextEdit menu bar.) See the Apple menu in TextEdit's menu bar become selected, instead of the one you selected in the Set Array window (but the menu does not open, which I guess is proper).
Now, I'm perfectly willing to admit that UI Browser might be mishandling the menubar/menubaritem/menu hierarchy due to a misunderstanding on my part. But it is the AXMenubar element that implements a selected children attribute and marks it as settable, and the AXMenubarItem child element implements a selected attribute and marks it as settable. So why does TextEdit select the Apple menu instead of the indicated child of the menu bar? And why does Finder select nothing at all?
I misdescribed the error in the AccessibilityDescriptions.plist file at /System/Library/Accessibility/AccessibilityDescriptions.plist regarding this. I should have said that the role_attributes array in the plist file does not include an item describing the settability of the AXSelectedChildren attribute of the AXMenuBar UI element. This is an omission, not a misdescription. The AXSelectedChildren attribute of a number of other UI Elements is marked as settable, and the plist file's attributes array does say that the AXSelectedChildren attribute should be settable by default.
--
|
_______________________________________________
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