• 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: Mike McNamara <email@hidden>
  • Date: Thu, 1 Nov 2007 20:56:28 -0600

At 6:57 PM -0700 11/1/07, Shawn Erickson wrote:

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.

My apologies for not explaining properly... I am getting a point from the current display the mouse is located on, calling CGGetDisplaysWithPoint() for the point and then passing the returned display ID to CGDisplayBounds(). In the case that the secondary display is above or below the primary one CGGetDisplaysWithPoint() returns null -- and of course my call to CGDisplayBounds as a result returns nothing.


So I guess it's more the case that CGGetDisplaysWithPoint() doesn't appear to function as I would expect for stacked displays.




_______________________________________________

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: Shawn Erickson <email@hidden>
References: 
 >Re: CGDisplayBounds() with stacked displays... (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: Core Data property declaration
  • Next by Date: Re: CGDisplayBounds() with stacked displays...
  • Previous by thread: Re: CGDisplayBounds() with stacked displays...
  • Next by thread: Re: CGDisplayBounds() with stacked displays...
  • Index(es):
    • Date
    • Thread