Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGDisplayBounds() with stacked displays...



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.