Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[ANNOUNCE] CSuspendAppleEvent class (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Another RB App for ya
Next thread: Sprites on Windows


Restart and RTF   -   Phil Schneider
  [ANNOUNCE] CSuspendAppleEvent class   -   James Sentman
   Re: [ANNOUNCE] CSuspendAppleEvent class   -   Will Leshner

[ANNOUNCE] CSuspendAppleEvent class
Date: 31.07.02 05:31 (Wed, 31 Jul 2002 00:31:52 -0400)
From: James Sentman
Hi Folks,

This is something I've been thinking about for a while and of course,
when the time pressure on another project gets critical, that's when
I decide to work on it;)

This class allows you to handle apple events asynchronously. You can
be processing any number of events at once as you like. You no longer
need to return the data at the end of the HandleAppleEvent routine,
but can do so at your leisure.

In your HandleAppleEvent event, you turn the event into a suspended event like:

MySuspendedEvent = new CSuspendedEvent( event)
return true

Any time later, but before the Apple Event timeout you can add a
reply just as your used to:

MySuspendedEvent.replyString = "Send James Pizza"
if not MySuspendedEvent.send then
msgbox "oops"
end if

Thats all. It's freeware and open source, but read the license. This
is something that I have wanted to be able to do for a LONG time, I
hope that other folks will get interested in it as well. I'll finish
up the opposite where you don't have to wait for the results of an
apple event in the next couple of days.

The class is written in RB code with declares. No plugins required.
I've only tested with RB 4.5 on OSX, but it should work with earlier
versions and OS9.

http://www.sentman.com/dev.htm

Thanks,
James

Re: [ANNOUNCE] CSuspendAppleEvent class
Date: 31.07.02 05:52 (Tue, 30 Jul 2002 21:52:36 -0700)
From: Will Leshner
This is very cool. Thanks.

On Tuesday, July 30, 2002, at 09:31 PM, James Sentman wrote:

> This class allows you to handle apple events asynchronously. You can be
> processing any number of events at once as you like. You no longer need
> to return the data at the end of the HandleAppleEvent routine, but can
> do so at your leisure.

---
Subscribe to the digest:
<mailto:<email address removed>>
Unsubscribe:
<mailto:<email address removed>>