home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12986 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.2 KB

  1. Path: sparky!uunet!munnari.oz.au!mips!decwrl!sun-barr!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu!mmigdol
  2. From: mmigdol@ccwf.cc.utexas.edu (michael a migdol)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Using PostHighLevelEvents to send low level (KeyPressed) events
  5. Message-ID: <76508@ut-emx.uucp>
  6. Date: 24 Jul 92 14:31:06 GMT
  7. Sender: news@ut-emx.uucp
  8. Reply-To: mmigdol@ccwf.cc.utexas.edu (michael a migdol)
  9. Distribution: na
  10. Organization: The University of Texas at Austin, Austin TX
  11. Lines: 16
  12. Originator: mmigdol@grumpy.cc.utexas.edu
  13.  
  14. According to IM VI, p. 5-18, "Your application can both send and receive high-
  15. level events, but it generally only receives low-level events and should not
  16. send them."
  17.  
  18. So, this implies that I *can* send KeyPressed events to other applications. 
  19. (Even though I "shouldn't", I want to. I really do! :) )
  20.  
  21. Anyways, Apple certainly doesn't seem to encourage this, and I'm about to try
  22. this out myself, but am I supposed to use PostHighLevelEvents with theEvent.what
  23. set to Keypressed (or whatever) to do this? Am I going to hit any problems 
  24. later on? Does the application I'm sending to have to "AcceptHighLevelEvents"
  25. to receive low level events sent this way?
  26.  
  27. Thanks in advance, and smile - it's FRIDAY!
  28. -Michael
  29.  
  30.