Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Capturing all the events in Full Screen Mode... Uhhh...



Hi there,
I'm a Cocoa newbie, and I've been trying to write a little game for Mac OS X... After fighting for a while with the fullscreen mode, I now have another problem:
When I am in full screen mode to get the events I use
[NSApp currentEvent]; and then dispatch the events by hand to my listeners...
My problem is that even though it seems to be working great for the mouse, it keeps on beeping whenever I hit the keyboard, that makes me think that the system is trying to dispatch the event and it doesn't find anything to handle it, therefore it beeps.
So my question is:
How am I supposed to do that (I mean do it right), how am I supposed to retrieve the events when I am in fullscreen mode? Should I put an NSResponder on the NSApp, since I don't have a window to attach my responder to?
Thanks!
Alex.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.