Mailing Lists: Apple Mailing Lists

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

CGDisplayBounds() with stacked displays...




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 can't seem to find any documentation relating to the issue. I don't think many people stack their displays nor have strange vertical offsets between displays, but I'd like to "do the right thing" in my application in any event.

I don't know that it would make any difference, but this is in 10.4 and using a 12 inch PowerBook and a 23 inch Cinema Display. I've used both as primary / secondary and vice versa with the same results. I don't have access to another multi-display setup unfortunately.

Any insight would be most appreciated!

Thanks!


Mike _______________________________________________

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.