Cocoa - Reset Mouse Position to center of View

First, I'm not a hard-core game programmer: I am a beginner. I'm experienced in Windows programming, but I wanted to learn Cocoa, so I deceided I'd port some Open GL tutorials to Cocoa. This is why I would like Cocoa specific help. I've learned quite a bit about Cocoa, but I've hit some snags.

My question is this: I can track the position of the mouse in the glWindow through the mouseMoved event. What I'd like to do in each render cycle, take the coordinates of the mouse from this event and use the distance from them to the center of the screen to rotate my viewpoint and then set the mouse coordinates back to the center of the screen to start over again. Does anyone have any ideas on how to do this in Cocoa?

Also, how do it make it if I push Escape, the program quits? (because if I start moving the cursor back to the center all the time, I'll never be able to muse the Application menu to quit. appreciate

One last question. Do you know how to hide the cursor?

Thanks for any help you may be able to give me. I appreciate your time!

You should never move the mouse pointer, as that would be against the HI guidelines. You should never mess with standard mouse behavior for a non-full-screen application. That's why you can't do it from Cocoa.

I can use CGGetLastMouseDelta now fine for tracking the distance the mouse traveled, but it stops tracking when I click a mouse button and drag. Is this easily avoided? Is this a problem with a first responser or something?