Creating an application HIObject?
Creating an application HIObject?
- Subject: Creating an application HIObject?
- From: Raymond Fischer <email@hidden>
- Date: Tue, 10 Dec 2002 15:00:11 -0800
On Friday, December 6, 2002, at 11:50 PM, Eric Schlegel wrote:
On Friday, December 6, 2002, at 11:41 PM, Eric Schlegel wrote:
On Friday, December 6, 2002, at 05:18 PM, Raymond Fischer wrote:
Sorry if this is a newbie question, but what is involved in making
custom controls accessible?
Carbon or Cocoa?
Actually, I'm assigning Carbon, since you asked a Carbon question
recently. Basically what's involved is implementing the Accessibility
Carbon events that are documented in CarbonEvents.h:
Not quite the answer, but useful anyway. Last I'd looked at custom
controls they
still involved CDEFs. I gather that now it's just a matter of
implementing the
standard accessibility events.
Now I have a new question, this time regarding notifications.
I see that there are accessibility notifications defined for when an
app is
activated/deactivated. Can I assume that means that they're not
automatically
generated for me as needed?
And posting an app notification turns out to be painful.
AXNotificationHIObjectNotify
is straightforward enough, but despite digging in several places I
don't see an
obvious way of creating an application HIObject. The best (and it's
still ugly)
I've come up with is to get my PSN, get the pid from that, create an
AXUI element
from that using AXUIElementCreateApplication, and then get the HIObject
from that.
Yuck.
Tell me I'm missing some obvious and simple alternative.
----
Ray Fischer
Adobe Systems
_______________________________________________
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.