home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / lisp / mcl / 1908 < prev    next >
Encoding:
Internet Message Format  |  1992-12-29  |  2.1 KB

  1. Path: sparky!uunet!spool.mu.edu!olivea!apple!cambridge.apple.com!TCASASENT@DIAMOND.kbsi.com
  2. From: tcasasent@diamond.kbsi.com
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: More Apple Events
  5. Message-ID: <MAILQUEUE-101.921229112119.256@DIAMOND.kbsi.com>
  6. Date: 29 Dec 92 17:29:43 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Organization: Knowledge Based Systems, Inc.
  9. Lines: 35
  10. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  11.  
  12. Thanks to All Who Replied Before!
  13.  
  14. I have confirmed that the appropriate Apple Events are being generated, 
  15. received and processed by and for MCL.  However, the correct event handlers 
  16. are not being used (except for quit for some reason).
  17.  
  18. I have defined a subclass of application and set an instance of it in 
  19. *application* and written my event handlers on this subclass.  The MCL 
  20. Reference suggests the part about using a subclass (but does not confirm 
  21. that simply setting the *application* variable will always use it).  Yet, 
  22. the quit handler does receive the specialized instance.
  23.  
  24. I have also tried using the install-appleevent-handler function to no avail.
  25.  
  26. I am having the same problem though.  Upon startup, neither oapp nor odoc 
  27. events are processed by the correct handlers (we're still holding off on the 
  28. print event since it should be just like the odoc event).  Quit, however, 
  29. still works fine.
  30.  
  31. After startup, the odoc handler will open documents belonging to the 
  32. application when they are double-clicked, but (as I said above) this event 
  33. gets "mislaid" when initially starting the application.
  34.  
  35. Can someone who has successfully implemented support for these AppleEvents 
  36. please send me a brief (or detailed) procedure for writing and installing 
  37. these methods?  Perhaps, somewhere, I'm missing something fairly basic.
  38.  
  39. Thanks,
  40.     -Tod
  41. ========================================================================
  42. tcasasent@kbsi.com
  43. ========================================================================
  44. The opinions and statements herein expressed are not those of KBSI and,
  45. if attributable to anyone, are mine.
  46. ========================================================================
  47.