NSScreen and capturing a second display only

  • Hi, this is my first time posting on this list, and I'm only just
    starting out with Cocoa, so please be patient. :-)

    I'm writing an application to run Quartz Compositions on projection
    screens around a night club, and need to keep the main screen for my
    controller interface, while capturing the other displays for the full
    screen QC visuals. There are plenty of examples of capturing the main
    display, but I cannot work out how to capture just the second
    display. Can anyone provide a hint or snippet of code to get me
    started on this?

    Thanks in advance,

    Adam Radestock

    ----------
    "Chaos, panic and disorder ... my work here is done."
  • Check out the documentation for NSScreen, specifically the +screens
    method. [[NSScreen screens] objectAtIndex:1] is your second screen if
    it's there.

    http://developer.apple.com/documentation/Cocoa/Reference/
    ApplicationKit/Classes/NSScreen_Class/Reference/Reference.html

    Hank Heijink
    www.hankheijink.com
    <hankh...>

    On Oct 1, 2006, at 1:40 PM, Adam Radestock wrote:

    > Hi, this is my first time posting on this list, and I'm only just
    > starting out with Cocoa, so please be patient. :-)
    >
    > I'm writing an application to run Quartz Compositions on projection
    > screens around a night club, and need to keep the main screen for
    > my controller interface, while capturing the other displays for the
    > full screen QC visuals. There are plenty of examples of capturing
    > the main display, but I cannot work out how to capture just the
    > second display. Can anyone provide a hint or snippet of code to get
    > me started on this?
    >
    > Thanks in advance,
    >
    > Adam Radestock
    >
    >
    >
    > ----------
    > "Chaos, panic and disorder ... my work here is done."
    >
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Cocoa-dev mailing list      (<Cocoa-dev...>)
    > Help/Unsubscribe/Update your Subscription:
    > http://lists.apple.com/mailman/options/cocoa-dev/<hankh...>
    >
    > This email sent to <hankh...>
    >
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today