Re: Exit screen saver programmatically?
Re: Exit screen saver programmatically?
- Subject: Re: Exit screen saver programmatically?
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 24 Sep 2009 09:08:00 -0600
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 (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