Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Tuesday, October 23 2018 @ 12:08 AM BST

Disabling screen saver

Objective-CHow to simulate user activity so that screen saver or energy saver doen't stop a length background task without user activity ?


- (void)awakeFromNib
    fTimer = [NSTimer scheduledTimerWithTimeInterval:30

- (void) dummyActivityTimer:(NSTimer *)timer
    OSErr err = UpdateSystemActivity(UsrActivity); // in Power.h


What's Related

Story Options

Disabling screen saver | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2018 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.04 seconds