Cocoa Key event problem

Posted by Oscar on Stack Overflow See other posts from Stack Overflow or by Oscar
Published on 2010-03-14T12:34:25Z Indexed on 2010/03/14 12:45 UTC
Read the original article Hit count: 296

I'm trying to build my first cocoa application. done some iPhone developing before. I have a hard time understanding how to layout my project.

i making a Pong game and my current design is to allocate an NSWindowController from my appDelegate. I then use custom view to act as paddles and ball. My problem is that i can't get the window controller to capture key events. Am i thinking wrong here? My idea is to have a controller class with all the logic, should i subclass another class for that?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa