• 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: NSScreen, CG and fullscreen bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSScreen, CG and fullscreen bug?


  • Subject: RE: NSScreen, CG and fullscreen bug?
  • From: Brian Hook <email@hidden>
  • Date: Fri, 09 Aug 2002 12:03:25 -0700

> If you use the CG APIs inside a Cocoa app to switch the
> reslution of the screen, then you must return to the main
> event loop right after the switch but before you open a
> window on that screen.

Is there a simple way to do this?

> I filed a bug with Apple about this (ID #2877602) some time
> ago and was told that the AppKit wont notice the mode switch
> until it has received a mode switch confirmation message from
> the window server. In order for the AppKit to pick up this
> message you must return to the event loop.

Bah! =(

> And yes, it would be nice if the NSScreen class would provide
> a +reset method for this kind of stuff as returning to the
> event loop is not always an option and can make things, well,
> complicated.

It can make things extremely complicated and cumbersome, especially when
your code is basically straightline video mode setting and window
creation.

Anyone have ideas for a simple solution? Right now I've hacked SDL so
that it always starts in windowed mode before going into fullscreen.
For some reason this problem only manifests itself if I start in
fullscreen then go into windowed, as if the act of window creation sets
up some basic state that the AppKit needs later.

-Hook
_______________________________________________
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: 
 >Re: NSScreen, CG and fullscreen bug? (From: Dietmar Planitzer <email@hidden>)

  • Prev by Date: Re: Strings from UUID
  • Next by Date: Re: Strings from UUID
  • Previous by thread: Re: NSScreen, CG and fullscreen bug?
  • Next by thread: NSTextField: newbie answer and questions
  • Index(es):
    • Date
    • Thread