On Oct 16, 2005, at 1:48 PM, Gregory Cooksey wrote:
My concern with doing it that way is that I only want the
application I specifically target to receive these events. If I
use the remote operation APIs, then it looks like I'll need to find
some way to keep track of what the focussed application is and only
send events when my target is focussed.
kEventClassApplication / kEventAppFrontSwitched
Alternatively I suppose my testing program could force the target
application to take focus and then I'd have to not touch anything
and hope no other programs jump to the foreground while the testing
is running. That seems fragile, and I don't know if I can make
another specific application take the focus.
SetFrontProcess, SetFrontProcessWithOptions
I also worry that there might be a race condition where I'd check
if my target is focussed, then focus would change to a different
application before I sent the event, and the wrong application
would receive my synthetic event.
_______________________________________________
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