kAXWindowsAttribute always returns different AXUIElementRefs
kAXWindowsAttribute always returns different AXUIElementRefs
- Subject: kAXWindowsAttribute always returns different AXUIElementRefs
- From: Matt Gough <email@hidden>
- Date: Mon, 17 Mar 2003 11:31:37 +0000
When asking for an app's kAXWindowsAttribute the array always comes back
with a different set of AXUIElementRefs even though the windows have not
changed.
E.g.
CFArrayRef array1, array2;
AXUIElementCopyAttributeValue(apAX, kAXWindowsAttribute , &array1);
AXUIElementCopyAttributeValue(apAX, kAXWindowsAttribute , &array2);
CFShow(array1);
CFShow(array2);
for a one window app gives:
<CFArray 0x3bf88d0 [0xa01303fc]>{type = fixed-mutable, count = 1, capacity =
1, values = (
0 : <AXUIElement 0x3bed360> {pid=1385}
)}
<CFArray 0x3bed3e0 [0xa01303fc]>{type = fixed-mutable, count = 1, capacity =
1, values = (
0 : <AXUIElement 0x3bed440> {pid=1385}
)}
Can anyone explain why this is? (as opposed to just retaining the
AXUIElementRef and returning the same one)
Thankfully CFEqual does actually return true for the two elements.
Matt Gough
_______________________________________________
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.