home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21083 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.3 KB  |  31 lines

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