Re: obtain AXUIElementRef from NSButton and multiple notifications
Re: obtain AXUIElementRef from NSButton and multiple notifications
- Subject: Re: obtain AXUIElementRef from NSButton and multiple notifications
- From: John Louch <email@hidden>
- Date: Sat, 05 Jun 2004 08:01:59 -0700
>
> 1. Can you obtain a AXUIElementRef from an object such as an NSButton.
>
> I suspect this is not possible because UIElementRef's should be
>
> obtained exclusively through the accessibility API. Is this the case?
>
>
As far as I know, Cocoa does not make any methods available for getting the
>
accessibility API object from a Cocoa UI element. But it is fairly easy to
>
do using the accessibility API.
Absolutely do not do this if you are inside an AX callback. I.e. Do not get
an AXUIElement and try to use it if you are currently handling an AX request
from another process.
What do you need the AXUIElementRef for? You should be able to just the
informal protocol in NSAccessibility.h.
Thanks,
jl
--------------------------------------------------
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.