On 18-Oct-2009, at 6:36 PM, David LeBer wrote:
On 2009-10-18, at 9:30 PM, jon wrote:
Hi David, that would not work, because the display does need to sleep, it would be working a long time, and at night.... but needs to let people know that it is done. i have an alarm go off, but people can know it has gone off much better from a distance if suddenly the room is filled with light from the display waking up.
surely there is a method for this?  wouldn't there be?
I don't know, and haven't tried, but what happens if you call:
        UpdateSystemActivity(UsrActivity);


I'm not sure if it's more correct to pass the OverallAct instead of UsrActivity since in this case there actually isn't any specific user activity.... Does anyone know how the arguments are interpreted?

Given what you're trying to do, it would seem that UpdateSystemActivity () is going to do what you want however, I stand by what I said before, if the user has set their security settings to require a password then this call will cause the password screen to showup. After a short time of no password being entered, the screen will go back to sleep (At least it did for the test app that I wrote using 10.6.1 to check this out). That might be enough for you, I don't know.

Good luck with it!
M.
_______________________________________________

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