Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is the event path from user to application?




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.

I don't know.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >What is the event path from user to application? (From: Gregory Cooksey <email@hidden>)
 >Re: What is the event path from user to application? (From: Eric Schlegel <email@hidden>)
 >Re: What is the event path from user to application? (From: Gregory Cooksey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.