Re: How to send apple event in cocoa application
Re: How to send apple event in cocoa application
- Subject: Re: How to send apple event in cocoa application
- From: Andreas Monitzer <email@hidden>
- Date: Fri, 12 Oct 2001 22:56:11 +0200
On Friday, October 12, 2001, at 09:38 , Fei Li wrote:
Hello all,
I hope I can send messages between two applications on the same computer.
I
think I can use apple event as I used in Mac OS9.
I saw there are two class NSAppleEventManager and NSAppleEventDescriptor
in
Foundation kit, but documentation said:"Cocoa doesn't currently provide a
mechanism for applications to send Apple events. However, Cocoa
applications
have full access to the Carbon APIs for working with Apple events." So it
seems I can't send event directly with cocoa's API, but how can I access
to
Carbon APIs from cocoa application?
Add the Carbon framework to your project and #include <Carbon/Carbon.h> in
the source. That's it.
Or maybe there's other better way to send messages between two application
on same computer?
If it's only simple messaging like "start task" and "end task",
NSDistributedNotificationCenter should be the easiest.
andy
--
The downside [of current processors] is that most modern boxes seem to be
best suited for running flight simulators - at least they sound like jet
engines. -- Seen on Slashdot