• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to prevent sleep mode when app is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to prevent sleep mode when app is running


  • Subject: Re: how to prevent sleep mode when app is running
  • From: "Hank Heijink (Mailinglists)" <email@hidden>
  • Date: Thu, 12 Jun 2008 12:34:13 -0400

Look into UpdateSystemActivity(). It's in the CoreServices framework. If you call it with UsrActivity every 25 seconds or so, the display won't dim and the computer won't go to sleep (unless it's forced to. You can't prevent that).

What is your app doing that you want to resort to something as drastic as preventing sleep? Someone might be able to suggest a better solution to your problem if you give more details.

Hank

On Jun 12, 2008, at 8:27 AM, Nick Rogers wrote:

Hi,
When the computer goes into sleep mode my app also seems to be taking forever in doing the current task.
So how can I prevent the computer from going into sleep mode when my app is running?


Wishes,
Nick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
@runbox.com


This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: how to prevent sleep mode when app is running
      • From: "Sean McBride" <email@hidden>
References: 
 >how to prevent sleep mode when app is running (From: Nick Rogers <email@hidden>)

  • Prev by Date: Re: NSTextView and changing the selected text's color
  • Next by Date: Re: Authentication and NSURLConnection sendSynchronousRequest
  • Previous by thread: how to prevent sleep mode when app is running
  • Next by thread: Re: how to prevent sleep mode when app is running
  • Index(es):
    • Date
    • Thread