home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / misc / 14058 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.4 KB  |  36 lines

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