home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!corax.udac.uu.se!perm
- From: perm@csd.uu.se (Per Mildner)
- Newsgroups: comp.sys.mac.programmer
- Subject: AESuspendTheCurrentEvent & friends
- Date: 15 Dec 92 17:37:26
- Organization: Computing Science Dept.,Uppsala University, Sweden
- Lines: 25
- Distribution: world
- Message-ID: <PERM.92Dec15173726@groucho.csd.uu.se>
- NNTP-Posting-Host: groucho.csd.uu.se
-
- I'm trying to use AESuspendTheCurrentEvent and
- AEResumeTheCurrentEvent but doesn't seem to get it to work. I cannot
- find any sample that uses this nor find anything in any of the
- archive.
-
- What I wan't: in my AE handler call AESuspendTheCurrentEvent, later
- (after several WaitNextEvent) call a routine that does
- AEResumeTheCurrentEvent with the same AppleEvent and reply that was
- used when calling AESuspendTheCurrentEvent (I assume that is the right
- reply to use?). This should now dispatch to a procedure I supply to
- AEResumeTheCurrentEvent wich in turn processes the event in the usual
- manner. The problem is that I get error -1704 (not a valid descriptor
- record) when I call AEResumeTheCurrentEvent (and possibly already at
- the Suspend, don't remember).
-
- Does anyone have any sample code that does this? Any info or pointers
- would be much appreciated.
- PS. I used Think C for this with paranoid settings (ie require
- prototypes etc). I have the ETO and Developer CDs.
-
- Thanks in advance,
- --
- Per Mildner perm@CSD.UU.SE
- Computing Science Dept. tel: +46 18181049
- Uppsala University, Sweden fax: +46 18521270
-