home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21095 < prev    next >
Encoding:
Internet Message Format  |  1993-01-09  |  2.2 KB

  1. Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!cats.ucsc.edu!dev
  2. From: dev@cats.ucsc.edu (/dev/null)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Apple event questions
  5. Message-ID: <1indvnINNqvh@darkstar.UCSC.EDU>
  6. Date: 9 Jan 93 20:53:11 GMT
  7. References: <C0LM1r.F8z@news.udel.edu>
  8. Organization: University of California; Santa Cruz
  9. Lines: 33
  10. NNTP-Posting-Host: am.ucsc.edu
  11.  
  12.  
  13. In article <C0LM1r.F8z@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
  14. >What I'm not sure of is whether the Toolbox also sends the information the
  15. >old way as well.  Do I have to use Gestalt to see whether I will get Apple
  16. >events to open my startup documents (and specifically not call
  17. >CountAppFiles to avoid getting the same information twice), or can I just
  18. >go ahead and do both, knowing that CountAppFiles will return 0 files if
  19. >there are odoc Apple events pending?
  20.  
  21. The system does not send the information the old way.  I think that it would
  22. work to still call CountAppFiles, but since you have to call Gestalt anyway
  23. to be able to tell that it is safe to make Apple Event calls, you might
  24. as well use it to know that you need not call CountAppFiles.
  25.  
  26. If you still want the application to work on System 6, you will need to call
  27. CountAppFiles, and not call any Apple Event traps.  They will cause an
  28. undefined A-Trap error (or actually, failure to load Pack8).
  29.  
  30. There is some good sample code for handling this in the Writeswell Jr. source
  31. code.   It is part of the Word Services Software Development Kit, which is
  32. available for anonymous ftp from ics.uci.edu.  It is in the file
  33. /mac/think-c/demos/ws-sdk-1.0.hqx.
  34.  
  35. Writeswell Jr. is a simple word processor that can have its text spellchecked
  36. by a standalone spellchecker via the Word Services Apple Event Suite.  The
  37. SDK comes with the complete source code to writeswell jr., as well as a test
  38. speller and the protocol specification.  Though it is in the demo directory,
  39. it is not a demo - it has everything that you need to support Word Services in
  40. your own application.
  41.  
  42. The AE Registry is quite large.  Though you may be able to find it on FTP
  43. somewhere, I think that it is worthwhile to buy a paper copy.  It may be
  44. cheaper than the toner cartridge you will burn printing it.
  45.