• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Screensaver can capture mouse events under Catalina
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screensaver can capture mouse events under Catalina


  • Subject: Re: Screensaver can capture mouse events under Catalina
  • From: Sandor Szatmari via Cocoa-dev <email@hidden>
  • Date: Mon, 25 May 2020 18:54:31 -0400

Gabriel,  (this is a dup reply, forgot to cc list)

How are you setting up you global event monitor?

I use this to handle catching mouse moved event when my app is not in the
foreground…. maybe you use something like this
Just watch out for a lot of events and making your app a CPU hog.

    [NSEvent addGlobalMonitorForEventsMatchingMask:NSMouseMovedMask
                                           handler:
     ^(NSEvent * _Nonnull event)
     {
            // Do stuff to handle events that I care about
     }];

Sandor

> On May 25, 2020, at 18:35, Michael Diehr via Cocoa-dev
> <email@hidden> wrote:
>
> 
>>
>> On May 25, 2020, at 12:43 PM, Gabriel Zachmann <email@hidden> wrote:
>> [...]
>> Unfortunately, it seems that I still cannot get key events.
>> Best regards, Gabriel
>
> I tried what feels like a thousand different variations and could not get key
> events under Catalina screensaver.
> If you can figure it out, please do share!
> Mike
>
> _______________________________________________
>
> 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

  • Follow-Ups:
    • Re: Screensaver can capture mouse events under Catalina
      • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
References: 
 >Re: Screensaver can capture mouse events under Catalina (From: Michael Diehr via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Screensaver can capture mouse events under Catalina
  • Next by Date: Re: Screensaver can capture mouse events under Catalina
  • Previous by thread: Re: Screensaver can capture mouse events under Catalina
  • Next by thread: Re: Screensaver can capture mouse events under Catalina
  • Index(es):
    • Date
    • Thread