re: Contextual menu issues
re: Contextual menu issues
- Subject: re: Contextual menu issues
- From: George Warner <email@hidden>
- Date: Thu, 14 Aug 2008 13:37:11 -0700
- Thread-topic: Contextual menu issues
On Thu, 14 Aug 2008 08:33:02 -0400, Bill Cheeseman <email@hidden>
wrote:
> Contextual menus in general appear to suffer from a fundamental
> "parent-child mismatch" issue. I wonder if I can get some confirmation of my
> analysis before I file a formal bug. The primary problem caused by this bug,
> if that's what it is, is that AppleScript's GUI Scripting cannot work with
> contextual menus.
> [...]
> You can see this in my PreFab UI Browser, using UI Browser's Screen Reader.
> UI Browser's Screen Reader wants to display not only the accessibility path,
> but also the AppleScript index number of each UI element in the path. To do
> this, it starts by getting the parent of each element, just as Accessibility
> Inspector does, but then it has to reverse direction and get that parent's
> children to obtain the index of the particular child element within all of
> the parent's child elements. In other words, it has to go both ways, up and
> down the accessibility hierarchy. Unfortunately, the parent of a contextual
> menu apparently has no children, in the eyes of the accessibility API. You
> can't get there from here. This is what I mean by a "parent-child mismatch."
This is more of a "parent-child reference disconnect" (orphan? No, the
child's reference is good; dead-beat? Yes! Child has parent but the parent
doesn't acknowledge the relationship. ;-). A mismatch would be a parents
reference to a child whose parent isn't the original object.
So contextual menu's have dead-beat parents... ;-)
Humor aside; I've seen apps that "fix" these missing references as they
transverse up so they can later get back down. One simple way to do this is
by adding a custom property that's a list of (unacknowledged) children.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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