Re: Panther accessibility bug?
Re: Panther accessibility bug?
- Subject: Re: Panther accessibility bug?
- From: David Niemeijer <email@hidden>
- Date: Thu, 9 Oct 2003 14:31:52 +0200
At 6:37 -0400 9/10/03, Bill Cheeseman wrote:
> In Panther (7B74) I am noticing that under certain circumstances a
menu item having a sub-menu may return a different menu as a visible
child then as a child. In this particular case I am testing with
TextEdit and the "Find" menu item of the "Edit" menu. This menu item
has a sub-menu. When the sub-menu is open (i.e. visible)
kAXVisibleChildrenAttribute reports the "Edit" menu as a child (which
seems wrong to me) and the kAXChildrenAttribute reports the "Find"
sub-menu as a child (which seems right to me). Is this a know issue
or should I also write this up as a bug report?
For what it's worth, in Mac OS X 10.2.8 Jaquar, when I use UI Browser's hot
key while holding the "Edit > Find" menu open, I get the correct path: menu
bar 1 > menu "Edit" > menu item "Find" > menu "Find" > [5 children,
including menu item "Find Panel...", etc.]
In Jaguar there is no problem because there are no visible children
leading from a menu item to its submenu so you are anyway forced to
follow the children path (which is also correct on Panther; it is the
visible children path that is incorrect on Panther).
I don't have Panther running just now, but are you aware that the menu bar
hierarchy has changed in Panther with the addition of "menu bar item"
elements as direct children of the menu bar? Working from memory, the path
in Panther should be: menu bar 1 > menu bar item "Edit" > menu "Edit" > menu
item "Find" > menu "Find" > [5 children]
Yes, I am aware of that and have already "worked around" it.
Yes. I just booted into Panther 7B68 (the most recent I have) and tried
this, and I get the correct path as indicated in the previous paragraph. So
I don't think there's an Apple bug here in 7B68. If you're getting a
different result, then it would be a bug introduced for the first time in
7B74.
You can easily reproduce it with UI Element Inspector on 7B74 (I do
not know about 7B68). Just open TextEdit, put your cursor above the
"Find" menu item of the Edit menu. Lock UI Element Inspector using
cmd-F10. A window should come up with a lock on AXMenuItem "Find".
choose the gopto popup and look at respectively children and visible
children. you will see that Children lists AXMenu-"Find" and visible
children lists AXMenu-"Edit". So there is definitely a problem with
Panther.
It looks like your UIB follows the children path and not the visible
children path for this particular step in the hierachy so it
implicitely works around this problem, but can therefor not be used
to test the problem either.
David.
_______________________________________________
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.