Re: Question about UIElementRefs
Re: Question about UIElementRefs
- Subject: Re: Question about UIElementRefs
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 26 Nov 2003 14:19:22 -0500
on 2003-11-26 1:35 PM, Andrew Taylor at email@hidden wrote:
>
> I read your post a little too quickly. The Apple engineers also told me that
>
> CFEqual should always work, even on destroyed elements.
>
>
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.
As I recall, the intent behind being able to use CFEqual was precisely so
that you could cache a reference and determine, based on some saved baseline
reference, whether the cached element is the one you are looking for. For
example, to determine whether to release it. So CFEqual has to be able to
work even on destroyed elements or it couldn't serve this purpose.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.