home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!news.udel.edu!chopin.udel.edu!kurisuto
- From: kurisuto@chopin.udel.edu (Sean J. Crist)
- Subject: What to do if I can't honor an Apple event?
- Message-ID: <C0LtEq.FpM@news.udel.edu>
- Sender: usenet@news.udel.edu
- Nntp-Posting-Host: chopin.udel.edu
- Organization: University of Delaware
- Date: Sat, 9 Jan 1993 20:40:01 GMT
- Lines: 19
-
- This is probably in IM VI somewhere, but I haven't been able to find it.
-
- My application can only have one document open at a time, and it doesn't
- support printing. If I get an 'open document' Apple event when there's
- already a document open, or if I get a 'print document' Apple event at any
- time, then I am unable to honor the Apple event.
-
- I know I'm supposed to send back an error string as illustrated on IM VI
- 6-49, but I'm not sure what integer to send back as the result of the
- handler function, since the cause of a failure wasn't an operating system
- error. Should I just send back any old negative integer (e.g. -1) if I
- don't have any other error to send back? Also, is it my responsibility to
- dispose of the event parameters by calling AEDisposDesc, or is that the
- responsibility of the caller if I send back an error code?
-
- Thank you very much.
-
- --Kurisuto
-
-