Re: NSScreen order?
Re: NSScreen order?
- Subject: Re: NSScreen order?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 10 Feb 2009 17:59:10 +0100
Le 10 févr. 09 à 17:23, Michael Ash a écrit :
On Tue, Feb 10, 2009 at 10:31 AM, Jonathan Hendry
<email@hidden> wrote:
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.)
I realize this counts as adding code, but it seems to me that the best
solution would be to allow the user to choose which screen to show the
OpenGL stuff on. This will not only fix your problem but give more
choice to other users as well.
Mike
And you should present to the user, only the screens that support your
required OpenGL Capabilities.
There is some tips about capability detection in the OpenGL
programming guide
http://developer.apple.com/documentation/graphicsimaging/Conceptual/OpenGL-MacProgGuide/opengl_general/chapter_6_section_2.html
The sample use CGMainDisplayID, but you can also retreive the
CGDirectDisplayID of each NSScreen from the NSScreen deviceDescription
dictionary (this is the @"NSScreenNumber" key).
_______________________________________________
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