• 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: Exit screen saver programmatically?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Exit screen saver programmatically?
      • From: Gabriel Zachmann <email@hidden>
References: 
 >Exit screen saver programmatically? (From: Gabriel Zachmann <email@hidden>)
 >Re: Exit screen saver programmatically? (From: Gabriel Zachmann <email@hidden>)

  • Prev by Date: Re: CoreData Mysterious Conditional Data Loss
  • Next by Date: Re: Can I recompose the Carbon-based app to a Cocoa-based app?
  • Previous by thread: Re: Exit screen saver programmatically?
  • Next by thread: Re: Exit screen saver programmatically?
  • Index(es):
    • Date
    • Thread