Re: kAXWindowsAttribute always returns different AXUIElementRefs
Re: kAXWindowsAttribute always returns different AXUIElementRefs
- Subject: Re: kAXWindowsAttribute always returns different AXUIElementRefs
- From: John Louch <email@hidden>
- Date: Mon, 17 Mar 2003 07:39:01 -0800
The pointer values will always be different, per design. That is why there
is a CFEqual. Remember that the elements are coming from a different
process.
Thanks,
jl
>
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.
---------------------------------------------
John Louch Internet #: email@hidden
(805) 546 0216
_______________________________________________
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.