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