>> 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 (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