• 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: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Mon, 25 May 2020 21:43:12 +0200

>> Also, I'm adding a NSTrackingArea (but not when the screensaver is in
>> preview mode).   I think this is critical to making it work, but can't say
>> for certain.
>>
>>                 trackingArea = NSTrackingArea(rect:bounds,
>> options:[NSTrackingArea.Options.activeAlways,
>> NSTrackingArea.Options.mouseEnteredAndExited,
>> NSTrackingArea.Options.mouseMoved], owner:self)
>>                 self.addTrackingArea(trackingArea!)


I can confirm: this is indeed critical.  Otherwise, the .saver does not receive
mouse events.

Unfortunately, it seems that I still cannot get key events.


Best regards, Gabriel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: James Crate via Cocoa-dev <email@hidden>
    • Re: Screensaver can capture mouse events under Catalina
      • From: Michael Diehr via Cocoa-dev <email@hidden>
References: 
 >Screensaver can capture mouse events under Catalina (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: Screensaver can capture mouse events under Catalina (From: Richard Charles via Cocoa-dev <email@hidden>)
 >Re: Screensaver can capture mouse events under Catalina (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)
 >Re: Screensaver can capture mouse events under Catalina (From: Michael Diehr via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: How to save a window's position and size
  • 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