Le 29 nov. 08 à 19:34, Bill Bumgarner a écrit :

On Nov 29, 2008, at 10:00 AM, Dave DeLong wrote:
Can this be used for posting events that would get picked up by other applications?

Nope.

To be honest, I don't know how you post such events to another application -- specifically targeted to another application.

CGEventPostToPSN() ? OK, it does not works with NSEvent, but it allows you to specify the target application of a CGEvent.

In general, Mac OS X maintains a notion of a active application. The [there can only be one] active application is the one to which all keyboard events are directed, save for system hot-key type key events. While, certainly, mouse events can be directed to other applications, any kind of a click event is generally also going to cause the active application to change.

You have mentioned "server" application. Do you have a specific client application you are targeting? Or are you trying to generically send key events to various apps on the system?

b.bum


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to