Re: Fullscreen and receiving events
Re: Fullscreen and receiving events
- Subject: Re: Fullscreen and receiving events
- From: troy <email@hidden>
- Date: Sat, 30 Aug 2003 09:55:22 -0700
On Saturday, August 30, 2003, at 4:38 AM, Thomas Davie wrote:
Hi,
I'm sure this question has been asked before, but I can't find it
anywhere in the archives, so please forgive me for posting it again.
I need to set up a full screen openGL view, which I have succeeded in
doing by setting up a pixel format (with NSOpenGLPixelFormat), and
then using CoreGraphics to set the monitor to the closest match to my
pixel format and set up an NSOpenGLContext and call setFullScreen on
it. I have got rendering working, but my problem is receiving events.
Obviously there is no NSResponder chain for events to be passed
down, so how do I receive events?
NSApplication's -sendEvent: method.
There's also a new fullscreen sample at the Apple developer website
that actually instantiates a new appkit event loop manually pumping the
events when in fullscreen.
=td=
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.