Lock screen saver programmatically on Mac OSX

Can you program Mac OS X not to turn on the screen saver while your application is active?

+2


source to share


1 answer


You want to use:

UpdateSystemActivity(UsrActivity);

      



Here is the Apple Code Sample .

Remember this is deprecated for 64-bit binaries and I haven't found a suitable replacement, but the struggle continues .

+3


source







All Articles