• 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: CGDisplayBounds() with stacked displays...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGDisplayBounds() with stacked displays...


  • Subject: Re: CGDisplayBounds() with stacked displays...
  • From: "Shawn Erickson" <email@hidden>
  • Date: Thu, 1 Nov 2007 18:57:49 -0700

On 11/1/07, Mike McNamara <email@hidden> wrote:
>
> Hello all -
>
> I'm in the midst of adding support for multiple displays to my
> application and have come across something I can't get my head
> around.  If I open the System Preferences and move my secondary
> display either on top of or beneath my primary display in the
> Displays panel, CGDisplayBounds() always returns kCGNullDirectDisplay
> if I'm in the secondary display.  CGDisplayBounds() returns what I
> would expect for the secondary display when situated to either the
> left or right of the primary one however.  If the secondary display
> is significantly "vertically mis-aligned" with the primary one
> CGDisplayBounds() will only return the secondary display ID in a
> small portion of the device -- whichever portion is closest to the
> primary one.  Is this normal behavior?

I am confused by what you state in the above... CGDisplayBounds
returns a CGRect that outlines the bounds in global coordinates for
the display ID you supply it. It doesn't return display IDs nor
kCGNullDirectDisplay.

Maybe you are talking about CGGetDisplaysWithRect?

-Shawn
_______________________________________________

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: CGDisplayBounds() with stacked displays...
      • From: Mike McNamara <email@hidden>
  • Prev by Date: Re: Core Data property declaration
  • Next by Date: Re: Core Data troubles - not removing objects
  • Previous by thread: CGDisplayBounds() with stacked displays...
  • Next by thread: Re: CGDisplayBounds() with stacked displays...
  • Index(es):
    • Date
    • Thread