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

Re: Preventing system sleep


  • Subject: Re: Preventing system sleep
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 16 Feb 2010 16:12:32 -0500
  • Organization: Rogue Research Inc.

On 2/16/10 12:57 PM, Laurent Daudelin said:

>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.

You can temporarily disable sleep using IOPMAssertionCreateWithName() on
10.6 or IOPMAssertionCreate on 10.5.

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

Don't you just love those?! :)

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

References: 
 >Preventing system sleep (From: Laurent Daudelin <email@hidden>)

  • Prev by Date: Re: Preventing system sleep
  • Next by Date: Re: Preventing system sleep
  • Previous by thread: Re: Preventing system sleep
  • Next by thread: Re: Preventing system sleep
  • Index(es):
    • Date
    • Thread