• 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
Preventing system sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preventing system sleep


  • Subject: Preventing system sleep
  • From: Laurent Daudelin <email@hidden>
  • Date: Tue, 16 Feb 2010 12:57:52 -0800

I'm working on a an app that at some point might start transferring a large file to a USB device. Apparently, if the system is set to go to sleep, the transfer will fail.

I was thinking of using the NSWorkspace extendPowerOffBy: but then the doc says "Currently unimplemented".

So, if my app get a notification that the system is going to sleep, how can I delay it?




-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://nemesys.dyndns.org
Logiciels Nemesys Software              				email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries

_______________________________________________

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: Preventing system sleep
      • From: "Sean McBride" <email@hidden>
    • Re: Preventing system sleep
      • From: Neil Allain <email@hidden>
  • Prev by Date: Appropriate -setWantsLayer: timing
  • Next by Date: Re: Perform additional action when window receives any mouse- or keyDown
  • Previous by thread: Re: Appropriate -setWantsLayer: timing
  • Next by thread: Re: Preventing system sleep
  • Index(es):
    • Date
    • Thread