Accepting and Responding to Keystrokes

2010-01-21 Thread Evan Schoenberg
Hey everyone, I'm a newbie and I have what I anticipate will be a pretty easy question to answer. In order to learn a bit about event handling and drawing, I'm attempting to write a program that draws a black rectangle that increases in length every time the user hits the 'c' key. So far it

Re: Accepting and Responding to Keystrokes

2010-01-21 Thread Jens Alfke
On Jan 20, 2010, at 8:30 PM, Evan Schoenberg wrote: I copied the keyDown method from Cocoa in a Nutshell, by the way. Needless to say, I don't really understand it. Basically, I would love it if somebody could help me to get this program to work, because as of yet I have not gotten