|
 |
Macrobyte Resources
Spell Check Demo 1.0f1
Why?
This project demonstrates a number of important aspects of working with AppleEvents in REALbasic:
- General Intro
This app could make a good introductory project on the sending
of AppleEvents. It doesn't use any of the more 'complex' AE functions, such as building
AppleEventObjectSpecifier objects.
- Constants
Although RB doesn't provide real constants, write your code as if it does.
This project file uses an init() method to initialize variables that are used (and named) as
constants. It makes the code much more readable. If RB ever does support constants, only
very minor changes will be needed.
- Interfacing with a Standard Suite
Many applications can benefit from a well-written spell checker, but writing
one from scratch is a large (if not huge) project. By taking advantage of just a small part of
the Word Services Suite (a standard suite of AppleEvents defined by Apple and Mac developers),
you can integrate a separate spell-checking application into your application with much less work.
By using the standard Word Services Suite, you can use any spell checker that supports it, by
changing only two constants in your code.
How?
Download the Spell Check Demo by clicking on this link:
SpellCheckDemo.sit.hqx 610 kb
What?
Read the instructions page for information on what's required to run this demo,
and how to get it started. If you'd like to integrate a Word Services spell checker into your own application, then
read the integration page.
|