home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.misc
- Path: sparky!uunet!darwin.sura.net!mips!apple!mumbo.apple.com!lefty.apple.com!user
- From: lefty@apple.com (Lefty)
- Subject: Re: Need something better than SmartQuotes
- Sender: news@mumbo.apple.com
- Message-ID: <lefty-290792134754@lefty.apple.com>
- Date: Wed, 29 Jul 1992 20:55:26 GMT
- References: <1992Jul20.030455.23483@gcnext.gac.peachnet.edu>
- Organization: Our Lady of Heavy Artillery
- Lines: 24
-
- In article <1992Jul20.030455.23483@gcnext.gac.peachnet.edu>,
- walton@gcnext.gac.peachnet.edu (Sam Walton) wrote:
- >
- > I downloaded Smart Quotes from sumex. It is a mini-app to be used in the
- > Apple menu. Pardon me, but how does another app tell other apps what to
- > type?
-
- I would assume that it patches the GetNextEvent/WaitNextEvent calls and
- looks for keyDown events. When one occurs, the patch examines the
- character in the event record, setting a flag if the character typed is a
- space and clearing the flag otherwise.
-
- When the character typed is a single-tick or a double-tick, if the flag is
- set, the patch substitutes the corresponding opening quote in place of the
- character in the event record; if the flag is clear, it substitutes the
- corresponding closing quote.
-
- When the patch completes executing, the (possibly altered) event record is
- passed on to the application which processes it normally.
-
- --
- David "Lefty" Schlesinger (lefty@apple.com)
- AppleTalk Bug Wrangler
- Apple Computer, Inc.
-