• 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
Broadcasting an AppleEvent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Broadcasting an AppleEvent


  • Subject: Broadcasting an AppleEvent
  • From: Philip Aker <email@hidden>
  • Date: Sat, 21 Sep 2002 06:09:30 -0700

A question for those who are familiar with implementing AppleEvents in applications or osaxen.

Our Mac plugin environment has extremely limited circumstances--plugins have no sanctioned access to an EventRecord. I have been able to use AppleEvents in my own plugins because I have a low level event patch. Now I have a request to supply some data (state of a particular window) and make it available to any other plugin. I can't assume they will have patches (or even want them). This cuts out replies. Not a real problem because I'm suppling them with an AppleEvent handler which uses the refcon parameter. I just cast the refcon to the data structure and copy over the data from the parsed AppleEvent. What happens is that whenever the state of the window changes, I send an AppleEvent with the updated record. It works fine right now but I've just realized that if I return 'noErr' from the client handler that perhaps the first plugin to handle this AppleEvent will also eat it. What I want is a 'broadcaster' event such that all of the the clients get the data.

What is the technique for this? Can I return 'errAEEventNotHandled' from the client handler and then ignore that error in the server?

Thanks,


Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Sending Control-T to Terminal (From: Jeffrey Berman <email@hidden>)

  • Prev by Date: Re: Unicode to plain text
  • Next by Date: Queueing messages at a future date in Eudora
  • Previous by thread: Sending Control-T to Terminal
  • Next by thread: Re: Sending Control-T to Terminal
  • Index(es):
    • Date
    • Thread