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 protected])

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 [email protected]

Reply via email to