Re: Can I show different content in different screens? (screensaver)
Re: Can I show different content in different screens? (screensaver)
- Subject: Re: Can I show different content in different screens? (screensaver)
- From: Juanjo Conti <email@hidden>
- Date: Fri, 24 Jul 2015 14:13:35 -0300
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 <email@hidden>
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 <email@hidden> 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 <email@hidden>
>> 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 <email@hidden> wrote:
>> >
>> >> On Jul 22, 2015, at 12:13 PM, Juanjo Conti <email@hidden>
>> >> 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
>> > <email@hidden>>
>> >
>> > 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 (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
>>
>>
>> _______________________________________________
>>
>> 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
>
>
>
>
> --
>
> Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
> <email@hidden>>
>
> Software Engineer - Carousel Apps <https://carouselapps.com>
>
>
--
Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com
<email@hidden>>
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 (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