I'm very new to objC and game programming in general, so excuse me if this is a question many of you could do [self facepalm];
I'm trying to setup a game loop (NSObject) as a controller. Also there is a NSOpenGLView connected with the Window via Interface Builder (MainMenu.xib). The loop should handle all keyboard input and manage what to draw on the view.
I figured out, that I can catch key events on the view with - (void)keyDown:(NSEvent *)theEvent. How could I pass this input to the controller/loop?
For sending the keyinput to the loop I used the NSNotificationCenter with postNotificationName. But it seems to be slow and 'laggy'. This can't be the right way to do it.
Any tips would be great!