• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fullscreen and receiving events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Fullscreen and receiving events (From: Thomas Davie <email@hidden>)

  • Prev by Date: Re: How to make service/demon in OS X
  • Next by Date: Re: How to make service/demon in OS X
  • Previous by thread: Fullscreen and receiving events
  • Next by thread: NSKeyedArchiver/NSKeyedUnarchiver
  • Index(es):
    • Date
    • Thread