Re: Archiving or copying observers and elements
Re: Archiving or copying observers and elements
- Subject: Re: Archiving or copying observers and elements
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 12 Dec 2002 17:54:39 -0500
on 02-12-12 3:23 PM, Raymond Fischer at email@hidden wrote:
>
Besides, isn't copying an AXUIElementRef just a matter of getting the
>
HIObject and ID and putting them into a new AXUIElementRef? Am I
>
missing something?
Yes, but that wouldn't have satisfied my needs as I saw them at the time.
Basically, I'm writing a Cocoa wrapper for the assistive application API. I
stash the AXUIElementRef and AXObserverRef objects in instance variables in
my Cocoa classes. They're easy to get at with a [myClass UIElement] message.
But when I was thinking about making my classes support the NSCopying
protocol, I ran into a closed door. There are ways to open that door, as you
suggest, but I found a better way to accomplish what I wanted to do and so
didn't pursue that line of thought.
I'm quite sure that I'm the one who is missing something. But hard work and
a few questions usually get me where I'm trying to go. At this point, I
believe I have worked around all known bugs in the accessibility API -- just
in time for them to be fixed by Apple, I gather. At least I'll be able to
warrant that my app works all the way back to Mac OS X 10.2.0.
--
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
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.