Broadcasting an AppleEvent
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.