UIElement references duration of validity?
UIElement references duration of validity?
- Subject: UIElement references duration of validity?
- From: Larry Gerndt <email@hidden>
- Date: Mon, 01 Dec 2003 20:23:39 -0800
I'm using the Accessibility API, following the example in the sample code
called UI Element Inspector, and I've got a question. Here's what I'm
trying to do, in psuedo code:
AXUIElementCopyElementAtPosition(...&curElement);
MyGetParentWindow(curElement, &parentElement);
CFRetain(parentElement);
.
. // overlay window appears over the parent at this point, then later...
.
AXUIElementPerformAction(parentElement, kAXRaiseAction));
// error, return -25202 (invalid element)
Does anyone know why this fails?
In case it helps, MyGetParentWindow() traverses up the UIElement hierarchy
until it finds an element whose role is "kAXWindow", and I know this works
because I'm able to get the bounds of that window successfully).
I've also noticed that each time the mouse moves, the references returned
from the Accessibility API are always different from their former values.
This leads me to believe that all of the references become invalidated the
moment the mouse moves. Is that true?
--
Larry Gerndt
AIM Handle: SonOfTheSonOfMan
Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
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.