How to send apple event in cocoa application
How to send apple event in cocoa application
- Subject: How to send apple event in cocoa application
- From: Fei Li <email@hidden>
- Date: Fri, 12 Oct 2001 13:38:35 -0600
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?
Or maybe there's other better way to send messages between two application
on same computer?
Thanks for any assistance!
Fei