CGDisplayBounds() with stacked displays...
CGDisplayBounds() with stacked displays...
- Subject: CGDisplayBounds() with stacked displays...
- From: Mike McNamara <email@hidden>
- Date: Thu, 1 Nov 2007 19:43:55 -0600
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:
This email sent to email@hidden