home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!decwrl!csus.edu!news
- From: eps@futon.SFSU.EDU (Eric P. Scott)
- Subject: Re: Keyboard input
- Message-ID: <1992Jul22.074541.26840@csus.edu>
- Sender: news@csus.edu
- Reply-To: eps@cs.sfsu.edu
- Organization: San Francisco State University
- References: <1992Jul21.191759.3408@news2.cis.umn.edu>
- Date: Wed, 22 Jul 1992 07:45:41 GMT
- Lines: 20
-
- In article <1992Jul21.191759.3408@news2.cis.umn.edu>
- rowley@leghorn.cs.umn.edu. (Tim Rowley) writes:
- >I want keyboard events from the main window of my application. Sounds simple
- >enough, but I'm having problems.
- >
- >I have a view with the following things overridden: keyDown and mouseDown.
-
- >This was slightly more successful in that I now get the mouseDown events, but
- >pressing a key just gives a miserable "boink."
-
- Does your View implement an acceptsFirstResponder method that
- returns YES? [Read the description of acceptsFirstResponder
- (Responder) in the NeXTstep Reference.]
-
- Also, have you done [the equivalent of]
-
- [[NXApp mainWindow] makeFirstResponder:thatView]
- ?
-
- -=EPS=-
-