I wonder why the second line doesn't' compile

        var screens = NSScreen.screens() as! [NSScreen]

        find(screens, window?.screen!)

On Fri, Jul 24, 2015 at 1:19 PM, Juanjo Conti <jjco...@carouselapps.com>
wrote:

> I was able to use this code, but only after init
>
>         var screens = NSScreen.screens() as! [NSScreen]
>
>         for screen in screens {
>
>             if screen == window?.screen! {
>
>                 NSLog("MY SCREEN \(screen)")
>
>             }
>
>         }
>
> On Wed, Jul 22, 2015 at 5:09 PM, Dave <d...@looktowindward.com> wrote:
>
>> Yes, Grab it’s global coords and then scan the NSScreen Array til you
>> find it, there are some API calls to do this too I think, but off the top I
>> can’t remember the details and not at my machine at the moment.
>>
>> Cheers
>> Dave
>>
>>
>>
>>
>> > On 22 Jul 2015, at 20:01, Juanjo Conti <jjco...@carouselapps.com>
>> wrote:
>> >
>> > So, from the code, I can tell in which screen my code is running?
>> >
>> > On Wed, Jul 22, 2015 at 2:38 PM, Steve Mills <sjmi...@mac.com> wrote:
>> >
>> >> On Jul 22, 2015, at 12:13 PM, Juanjo Conti <jjco...@carouselapps.com>
>> >> wrote:
>> >>
>> >> I'm writing an screensaver and I wonder what happens if I have more
>> than
>> >> one screen.
>> >>
>> >> So far, the screensaver is displayed in all the screens.
>> >>
>> >> But, what about if I want to show different content in each? do you
>> know if
>> >> the screen saver framework has support for this?
>> >>
>> >>
>> >> Each screen gets its own executable, so each screen shows different
>> >> content. For instance, the built-in ones that show photos have
>> different
>> >> photos on each screen.
>> >>
>> >> Sent from iCloud's horrible UI
>> >>
>> >>
>> >
>> >
>> > --
>> >
>> > Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
>> > <jjco...@carouselapps.com>>
>> >
>> > Software Engineer - Carousel Apps <https://carouselapps.com>
>> >
>> > --
>> > Carousel Apps Limited, registered in England & Wales with registered
>> number
>> > 7689440 and registered office Unit 2 Artbrand Studios, 7 Leathermarket
>> > Street, London SE1 3HN. Any communication sent by or on behalf of
>> Carousel
>> > App Ltd or any of its subsidiary, holding or affiliated companies or
>> > entities (together "Watu") is confidential and may be privileged or
>> > otherwise protected. If you receive it in error please inform us and
>> then
>> > delete it from your system. You should not copy it or disclose its
>> contents
>> > to anyone. Messages sent to and from Watu may be monitored to ensure
>> > compliance with our internal policies and to protect our business.
>> Emails
>> > are not secure and cannot be guaranteed to be error free. Anyone who
>> > communicates with us by email is taken to accept these risks.
>> > _______________________________________________
>> >
>> > 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:
>> >
>> https://lists.apple.com/mailman/options/cocoa-dev/dave%40looktowindward.com
>> >
>> > This email sent to d...@looktowindward.com
>>
>>
>> _______________________________________________
>>
>> 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:
>>
>> https://lists.apple.com/mailman/options/cocoa-dev/jjconti%40carouselapps.com
>>
>> This email sent to jjco...@carouselapps.com
>
>
>
>
> --
>
> Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
> <jjco...@carouselapps.com>>
>
> Software Engineer - Carousel Apps <https://carouselapps.com>
>
>


-- 

Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
<jjco...@carouselapps.com>>

Software Engineer - Carousel Apps <https://carouselapps.com>

-- 
Carousel Apps Limited, registered in England & Wales with registered number 
7689440 and registered office Unit 2 Artbrand Studios, 7 Leathermarket 
Street, London SE1 3HN. Any communication sent by or on behalf of Carousel 
App Ltd or any of its subsidiary, holding or affiliated companies or 
entities (together "Watu") is confidential and may be privileged or 
otherwise protected. If you receive it in error please inform us and then 
delete it from your system. You should not copy it or disclose its contents 
to anyone. Messages sent to and from Watu may be monitored to ensure 
compliance with our internal policies and to protect our business. Emails 
are not secure and cannot be guaranteed to be error free. Anyone who 
communicates with us by email is taken to accept these risks.
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to