NSScreen order?
NSScreen order?
- Subject: NSScreen order?
- From: Jonathan Hendry <email@hidden>
- Date: Tue, 10 Feb 2009 10:31:59 -0500
Hi,
How is the order of screens after screen 0 in [NSScreen screens]
determined?
I have two external monitors hooked up to my laptop. One is a 23" LCD
which is the primary display. One of the monitors is a Mimo USB
monitor, which doesn't play well with OpenGL. Our application is
written so that if there is more than one display, it captures display
2 (ie, screens[1]) and uses it to display an OpenGL visual stimulus.
The problem I'm having is that the app always grabs the Mimo, which
makes OpenGL unhappy, and the app crashes. I would like the app to
grab the internal LCD of the laptop instead. I've tried changing the
arrangement of the screens, but that doesn't seem to make any
difference. If I unplug the Mimo, then start the app, it does capture
the laptop's LCD. I can then plug the Mimo back in, and it works as
desired - until I restart the app.
Is there any way to predict how the displays will be numbered? Or to
force the Mimo to be screen 3?
(I'd rather not add code to the app to account for my toy monitor.)
Thanks,
Jon
Jonathan Hendry
Howard Hughes Medical Institute
Maunsell Lab
Harvard Medical School
_______________________________________________
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