home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5170 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.1 KB  |  33 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!decwrl!csus.edu!news
  3. From: eps@futon.SFSU.EDU (Eric P. Scott)
  4. Subject: Re: Keyboard input
  5. Message-ID: <1992Jul22.074541.26840@csus.edu>
  6. Sender: news@csus.edu
  7. Reply-To: eps@cs.sfsu.edu
  8. Organization: San Francisco State University
  9. References: <1992Jul21.191759.3408@news2.cis.umn.edu>
  10. Date: Wed, 22 Jul 1992 07:45:41 GMT
  11. Lines: 20
  12.  
  13. In article <1992Jul21.191759.3408@news2.cis.umn.edu>
  14.     rowley@leghorn.cs.umn.edu. (Tim Rowley) writes:
  15. >I want keyboard events from the main window of my application.  Sounds simple  
  16. >enough, but I'm having problems.
  17. >
  18. >I have a view with the following things overridden: keyDown and mouseDown.
  19.  
  20. >This was slightly more successful in that I now get the mouseDown events, but
  21. >pressing a key just gives a miserable "boink."
  22.  
  23. Does your View implement an acceptsFirstResponder method that
  24. returns YES?  [Read the description of acceptsFirstResponder
  25. (Responder) in the NeXTstep Reference.]
  26.  
  27. Also, have you done [the equivalent of]
  28.  
  29.     [[NXApp mainWindow] makeFirstResponder:thatView]
  30. ?
  31.  
  32.                     -=EPS=-
  33.