Le 10 févr. 09 à 17:23, Michael Ash a écrit :

On Tue, Feb 10, 2009 at 10:31 AM, Jonathan Hendry <jonhen...@mac.com> 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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to