• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I Send Apple Events in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I Send Apple Events in Cocoa?


  • Subject: Re: Can I Send Apple Events in Cocoa?
  • From: Annard Brouwer <email@hidden>
  • Date: Wed, 14 Dec 2005 18:32:09 +0100

Funny you mention this since right at this moment I'm investigating on how to deal with reply events in both Carbon and Cocoa for a plugin. Based on my research (note: NO empirical data yet), you should be able to install a handler for your reply event in a Cocoa application.

If you use an embedded AppleScript and you don't care about the response of the server application, you're fine. This is the route I take most of the time: I use the script as a format string where I fill in the details at runtime and fire away. Works great. You could even consider writing a response inside the script to a file and read that from your Cocoa code when it's done executing...

If you want a nice OO solution and you control both the client and the server applications, it wouldn't be too much trouble to implement a Distributed Objects implementation. However, if you're stuck with AppleEvents and need to interact with the server application, welcome to the world of Carbon and lots and lots of functions to do little bits of stuff... :-)

Annard

On 14 Dec 2005, at 18:13, Kaydell Leavitt wrote:
I think that my motivation to send the Apple Events,
to make sure that the event goes to the right app, is
not necessary, but can I process a reply Apple Event?

Also, I read in "Cocoa Programming" that as of 10.1.3
that Apple Events were not fully supported. Has this
changed. We're targeting 10.4.3 and up.

Maybe this isn't an issue given that I can use
embedded Apple Script and that I can call anything in
the Carbon framework.

But, is there a nice object-oriented Cocoa/Objective-C
solution?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Re: Can I Send Apple Events in Cocoa? (From: Kaydell Leavitt <email@hidden>)

  • Prev by Date: Re: Can I Send Apple Events in Cocoa?
  • Next by Date: Re: NSXMLParser useless with HUGE files
  • Previous by thread: Re: Can I Send Apple Events in Cocoa?
  • Next by thread: Re: Can I Send Apple Events in Cocoa?
  • Index(es):
    • Date
    • Thread