The properties of a Cocoa button object (NSButton) does not have one-to-one mapping to the attributes of an accessibility object (AXUIElement). As you've found out, you can't take an AXUIElement and hope to get the properties of a NSButton, like key equivalent. I am not aware of any MacOS API that will allows you to obtain the NSButton object cross-process in order to sniff out its properties. You can try asking on the Cocoa dev mailing list instead.
Patti On Dec 18, 2011, at 9:43 AM, 王珺翔 wrote:
I have a cocoa application running and there is a NSButton on it. From another process, I can get some properties of that Button via Accessibility APIs (i.e. by AXUIElement). Obviously, only limited properties are exposed, I can not get properties like "buttonType", "KeyEquivelant" through this way.
So, my question is, Is there any fundamental APIs on Mac that can retrieve properties of a UI element, particularly in an cross-process way. Thanks in advance!
Best Regards!
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
|