Re: Question about UIElementRefs
Re: Question about UIElementRefs
- Subject: Re: Question about UIElementRefs
- From: John Louch <email@hidden>
- Date: Thu, 27 Nov 2003 12:40:28 -0800
>
On Nov 26, 2003, at 10:35 AM, Andrew Taylor wrote:
>
>
> Well, I guess I have some code review to do. It might be that a year
>
> ago CFEqual worked on destroyed elements, but I wonder if it is true
>
> today. I suspect the "proper" solution is to make sure I am not
>
> working with destroyed elements to begin with.
>
>
>
>
When you cache the UIElementRef, do you also call CFRetain on it? It
>
sounds to me like you're not retaining it, and then the AX
>
implementation is releasing the element underneath you.
>
This is not necessary. Any AXUIElementRef you get back from the AX API is
already retained. The API will not release it from underneath you. It is
your copy to do with as you wish. Andrew and I talked about this off line
and it is probably a double release in his code somewhere.
Thanks,
jl
>
-eric
>
_______________________________________________
>
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.