Re: How to retrieve UI element properties that Accessibility API does not provide ?
Re: How to retrieve UI element properties that Accessibility API does not provide ?
- Subject: Re: How to retrieve UI element properties that Accessibility API does not provide ?
- From: Christiaan Hofman <email@hidden>
- Date: Mon, 19 Dec 2011 19:26:16 +0100
On Dec 18, 2011, at 18:43, 王珺翔 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!
Strictly speaking, the answer to your question is the accessibility API. It "retrieves properties of a UI element".
Your first paragraph however seems to suggest that what you want is to get *arbitrary* properties of an UI element. And if that's your question, than the answer is no. And, quite frankly, that's a very good thing, because that would sound like extremely unsafe. That should be obvious.
Christiaan
|
_______________________________________________
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