On Sep 24, 2009, at 2:14 AM, Gabriel Zachmann wrote:

I want to catch a few key events in my screen saver (like cursor keys, space, return), but if the user clicks any other key, I want the screen saver to exit, just like other screen savers that don't catch any keyboard events.

In that case, then you should pass the unwanted event to the superclass, which will handle the event in that case. Don't quit ScreenSaverEngine for any reason. If the user has a password on their screen saver, then they probably will not appreciate your screen saver compromising their security (unless ScreenSaverEngine catches this and cancels the terminate message, I'm not sure).

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to