home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / programm / 22213 < prev    next >
Encoding:
Text File  |  1993-01-27  |  2.0 KB  |  52 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
  3. From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
  4. Subject: Re: Mac keyboard driver?
  5. Message-ID: <1993Jan26.160158.12003@kth.se>
  6. Sender: usenet@kth.se (Usenet)
  7. Nntp-Posting-Host: dront.nada.kth.se
  8. Organization: Royal Institute of Technology, Stockholm, Sweden
  9. References: <1k2s4vINN39i@golem.wcc.govt.nz>
  10. Date: Tue, 26 Jan 1993 16:01:58 GMT
  11. Lines: 39
  12.  
  13. In <1k2s4vINN39i@golem.wcc.govt.nz> bennett_w@kosmos.wcc.govt.nz (William Francis Bennett) writes:
  14.  
  15. >I'm porting an application from Windows to Mac, so far with a lot of success,
  16. >but I can't find any reference to the Mac's keyboard driver.
  17. >Is there such a thing?
  18.  
  19. Yes, and it's not documented, for good reasons.
  20.  
  21. >In particular, I'm looking to read a keystroke sequence - such as the plus key
  22. >followed by the star key (on the numeric pad) to trigger an action.
  23.  
  24. Try looking up NGetTrapAddress, NSetTrapAddress, PostEvent and PPostEvent
  25. - or, even better, look up the jGNEFilter. You also will need to know
  26. how to write an INIT.
  27.  
  28. This is stuff that you need to write real extra special careful, or
  29. users will return years later to haunt you. It's very powerful,
  30. though.
  31.  
  32. I recommend getting ahold of all volumes of Inside Macintosh, of
  33. the TechNote stack, and both the comp.sys.mac.programmer FAQ and
  34. the UseNet Mac Programmers Guide. A subscription to _Develop_ is
  35. only $30/year, and will give you the developer CD that's a MUST
  36. for Mac developers (you also have to get a CD ROM, of course)
  37.  
  38. Note that this advice applies ESPECIALLY if you're a commercial
  39. developer, even the FAQ will help you across several pitfalls.
  40.  
  41. If you're commercial, and can't even cough up the $400 for a
  42. CD ROM, forget it. Mac users demand better stability and devotion
  43. than that.
  44.  
  45. Cheers,
  46.  
  47.                         / h+
  48. -- 
  49.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  50.  
  51.    This article printed on 100% recycled electrons.
  52.