I have a question about Event Taps (see Quartz Event Services):
The CGEventTapInformation data type, a struct, includes a uint32_t field
called "eventTapID". What is this supposed to be used for?
The reason I ask is that there doesn't seem to be any way to get an Event
Tap's ID when I create it, but only when I get a list of all Event Taps
already installed. Thus, there doesn't seem to be any way to use an
eventTapID previously obtained to identify which Event Tap in the list of
installed Event Taps is mine.
Specifically, the reference document describes the eventTapID as the "unique
identifier for the event tap." However, as nearly as I can tell, I can only
get CGEventTapInformation about an Event Tap by running the
CGGetEventTapList function, which returns an array of CGEventTapInformation
for every Event Tap installed on the system. I don't see any way to get the
eventTapID (or the CGEventTapInformation struct) in a newly-installed Event
Tap at the time I create it (except by calling CGGetEventTapList immediately
after I create an Event Tap to find the new entry in the list, and this
requires me to keep track of all the Event Taps I've created and removed
previously). Therefore, I don't see any convenient way to use the eventTapID
-- for example, to discover which Event Tap is mine in the list returned by
CGGetEventTapList.
--
PLEASE NOTE MY NEW E-MAIL ADDRESS:
Bill Cheeseman - email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden