Re: Extrange problem with screensaver in 2 monitors and key stroke
Re: Extrange problem with screensaver in 2 monitors and key stroke
- Subject: Re: Extrange problem with screensaver in 2 monitors and key stroke
- From: Stephane Sudre <email@hidden>
- Date: Mon, 02 Feb 2015 23:45:40 +0100
If you are subclassing the keyDown:|keyUp: method of the screensaver
view, you are limited by the fact that there can only be one first
responder.
A solution could be to post a notification when you detect the N key
being pressed (or released) and refresh the Web View from the
notification observer callback.
On Mon, Feb 2, 2015 at 2:51 PM, Juanjo Conti <email@hidden> wrote:
> Hi! I'm writing a screensaver that shows a web page, the idea is that every
> certain number of seconds the page is changed but the user can also change
> it pressing the N key.
>
> If I use the screensaver having 2 monitors (not configured as mirrors), the
> time based change works ok, but the key based only changes the page in one
> of the screens.
>
> Was I clear describing the problem? I'm kind of lost. I don't know where to
> start digging. I suspect that it can be related to the fact that the key
> NSEevent has a windown property and there is a window per screen...?
>
> Thanks in advance!
>
> --
>
> 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
--
Packaging Resources - http://s.sudre.free.fr/Packaging.html
_______________________________________________
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