home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / mcl / 1290 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.5 KB  |  40 lines

  1. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!cambridge.apple.com!bill@cambridge.apple.com
  2. From: bill@cambridge.apple.com (Bill St. Clair)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: can't find help file in standalone
  5. Message-ID: <9208211631.AA15593@cambridge.apple.com>
  6. Date: 21 Aug 92 17:36:31 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 26
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10. Full-Name: Bill St. Clair
  11. Original-To: wilcox@cmns.think.com
  12. Original-Cc: info-mcl
  13.  
  14. >I'm using the file help-manager.lisp to add help balloons to my application,
  15. >and it works well. However, when I create a standalone and turn on help,
  16. >a dialog box appears with a message saying that it can't find some help
  17. >file, and do I wish to locate it? My help specs are in the application code
  18. >itself, not in a separate resource file or fork. How do I avoid this dialog?
  19.  
  20. First, the two files "ccl:library;help-manager.lisp" and
  21. "ccl:library;resources.lisp" must be loaded into your application.
  22.  
  23. Second, if you do not use a resource file for your application,
  24. you should specialize one of the methods: 
  25.  
  26.     ccl::help-resource-file
  27.     ccl::help-resource-file-refnum
  28.  
  29. The easiest way to do this is:
  30.  
  31. (defclass my-application (application) ())
  32.  
  33. (setq *application* (make-instance 'my-application))
  34.  
  35. (defmethod ccl::help-resource-file ((app my-application))
  36.   nil)
  37.  
  38. If you carefully peruse the source to "ccl:library;help-manager.lisp",
  39. you will see why this works.
  40.