On Apr 12, 2009, at 7:48 PM, Bill Janssen wrote:
I was afraid of that... Is there an easy way to do that from the command line given its PID?
Not really. First, you need a window server connection; you cannot send Apple events without one. Second, you need to get a PSN for the PID. Third, you need to craft and send a quit event to the PSN. The first thing can be accomplished by calling NSApplicationLoad(). For the other two, you can probably find sample code on the Web or in the archives.
Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ 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 arch...@mail-archive.com