Re: Window closed notification
Re: Window closed notification
- Subject: Re: Window closed notification
- From: Ryan Joseph <email@hidden>
- Date: Mon, 21 Jun 2010 15:36:14 -0600
On Jun 21, 2010, at 3:15 PM, James Dempsey wrote:
>> Indeed this is what I want. However, I noticed that the AXUIElement returned in the callback didn't have any attributes so I'm not sure which window was destroyed. Is it possible that I could keep a cached list of window elements then compare them with the element from the callback? I'm not sure how safe it is to CFRetain on the element and if I really will retain ownership. Thanks for helping.
>
> An AXUIElementRef has the standard CF retain/release semantics. The AXUIElement ref you receive back in the element destroyed notification should compare as CFEquals() to any AXUIElementRef you already have for that element.
Well the retaining did work and testing for equality but the element still seems to have lost all its internal data so I guess the API was keeping it elsewhere. I can keep my own records along side the dead-reference for comparing so it should it should still work.
Regards,
Josef
_______________________________________________
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