Re: Exit screen saver programmatically?
Re: Exit screen saver programmatically?
- Subject: Re: Exit screen saver programmatically?
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 23 Sep 2009 16:45:40 -0600
On Sep 23, 2009, at 4:39 PM, Gabriel Zachmann wrote:
Does anyone know whether it is possible to exit a screensaver
programmatically, i.e., from within the screensaver code,
but *without* exiting the System Preferences, if the screensaver was
run from System Preferences?
It's possible; you'd have to discriminate based on the bundle
identifier returned by the main NSBundle. BTW, what exactly are you
trying to accomplish? Quitting the screen saver engine
programmatically can open a security hole, since it's quite possible
that the computer was locked for a reason.
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