home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!darwin.sura.net!jvnc.net!yale.edu!cs.yale.edu!bitting-douglas
- From: bitting-douglas@CS.YALE.EDU (Pondscum Czar)
- Subject: AppleEvent gets munged by AEProcessAppleEvent
- Message-ID: <1992Jul29.221720.28079@cs.yale.edu>
- Sender: news@cs.yale.edu (Usenet News)
- Nntp-Posting-Host: zoo-gw.cs.yale.edu
- Organization: Organization? It's around here somewhere...
- Distribution: comp
- Date: Wed, 29 Jul 1992 18:17:14 GMT
- Lines: 48
-
-
- Hi.
-
- I have a program that has the following flow of control when it receives
- an 'oapp' event:
-
- DoHighLevelEvent(&theEvent); // Event is an EventRecord
- // theEvent was verified to have an
- // AppleEvent
-
- ...
-
- void DoHighLevelEvent (EventRecord *anEvent)
- {
- OSErr err;
-
- err = AEProcessAppleEvent(anEvent); // an event was verified to
- // correctly contain an Apple
- // Event.
- ...
- [ ErrorHandling ]
- ...
- }
-
- OSErr HandleAEOpenApplication(AppleEvent *ae, AppleEvent *reply, long refCon)
- {
- if (!ae) DoError("NULL Apple Event!");
- return MyGotRequiredParameters(ae);
- }
-
- The problem is that DoError is always called from
- HandleAEOpenApplication... somewhere the system is losing the apple
- event and I don't understand why.
-
- Can anyone help me out here? This is so simple, it's ridiculous... but
- why it isn't working is boggling to my mind... yes, the handler was
- installed correctly, or it wouldn't even get that far, no?
-
- --Doug
- --
- ...Doug Bitting... || "But the wisdom that comes from heaven is first
- || of all pure; then peace loving, considerate,
- bitting@cs.yale.edu || submissive, full of mercy, and good fruit,
- doug@yalevm.bitnet || impartial and sincere." -- James 3:17
- --
- --
- The new Congressmen say they're going to turn the government around. I
- hope I don't get run over again.
-