• 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 + resolution change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScreen + resolution change


  • Subject: Re: NSScreen + resolution change
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 18 Jul 2007 04:23:54 -0700

On Wednesday, July 18, 2007, at 04:35AM, "Thomas Engelmeier" <email@hidden> wrote:
>Hi,
>
>I have an kiosk-type application that optionally changes the
>resolution via CGDisplaySwitchToMode and then goes full-screen
>
>Unfortunately [[NSScreen mainScreen] frame] (et al.)  continues to
>return the pre resolution switch values.
>The problem is that in Cocoa origin.y seems to get shifted during the
>resolution change, probably due to the top-left origin coordinate
>system in Quartz.
>I.e. changing the resolution results in an display coordinate system
>moving [0,0,1280,800] -> [0,32,1024,768].
>
>Is there a way to get up-to-date values instead of relying on an
>deltaY shift?

You will most likely need to do the "offset" workaround.

Do a google search on "NSScreen resolution change".  There are many hits to include this one:

<http://www.idevgames.com/forum/archive/index.php/t-10002.html>

--
Rick Sharp
Instant Interactive(tm)


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSScreen + resolution change
      • From: Thomas Engelmeier <email@hidden>
References: 
 >NSScreen + resolution change (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: NSProgressIndicator (CallBacks)
  • Next by Date: NSData and endianness
  • Previous by thread: NSScreen + resolution change
  • Next by thread: Re: NSScreen + resolution change
  • Index(es):
    • Date
    • Thread