Re: delaying forced sleep after initial 30 seconds delay
Re: delaying forced sleep after initial 30 seconds delay
- Subject: Re: delaying forced sleep after initial 30 seconds delay
- From: Quincey Morris <email@hidden>
- Date: Thu, 02 May 2013 21:52:47 -0700
On May 2, 2013, at 21:16 , Nick Rogers <email@hidden> wrote:
> I want my app to delay forced sleep even after requesting the initial delay of 30 seconds.
> This have to be specifically set by the user in the Preferences of the app and only when the user clicks a button to run some operation, for the duration of that operation which could extent to a minute or two.
>
> I know it would be against the mac os x design principles, but I think in the end it has to be the user's wish.
>
> I have seen my macbook pro sometime taking more than 2 minutes to go into sleep, after closing the lid. So is this possible at all?
It's worth watching the 2012 WWDC session video on Power Management. The relevant APIs are here:
https://developer.apple.com/library/mac/#documentation/IOKit/Reference/IOPMLib_header_reference/Reference/reference.html
I don't see any reason to think this violates any Mac design principles.
_______________________________________________
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