2

Is it possible to programatically ask Mac OS X not to turn on the screen saver while your application is active?

Kevin Laity
  • 2,489
  • 1
  • 27
  • 34

1 Answers1

3

You want to use:

UpdateSystemActivity(UsrActivity);

Here is Apple's example code.

Be aware this is deprecated for 64bit binaries, and I have not found a suitable replacement, but the struggle continues.

Community
  • 1
  • 1
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222