• 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: Wake computer from sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wake computer from sleep


  • Subject: Re: Wake computer from sleep
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 10 Jul 2009 10:40:36 +0200


Le 9 juil. 09 à 18:28, Mr. Gecko a écrit :

Hello, I'm working on an alarm and I'm wondering what would be the best way to make it wake up the computer.
I've heard of IOPMSchedulePowerEvent and I think it's the best way, but I'll need root privileges and I'm guessing the best way to do that without making a security hole is to have a helper application that just tells the computer what time to wake up and have my alarm application launch it. But there is one thing there, the only way I can find to do it requires the user to type in a password each time my alarm starts up and that's not user friendly, so is it possible maybe to save the user password in the keychain and use that to authenticate it to schedule an wake up time? Or save the AuthorizationRef and get that at start up?


Thanks for any tips/help,

Does this help you ?

http://developer.apple.com/samplecode/BetterAuthorizationSample/listing6.html





_______________________________________________

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: Wake computer from sleep
      • From: "Mr. Gecko" <email@hidden>
References: 
 >Wake computer from sleep (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Retain cycles with NIB instantiations, bindings
  • Next by Date: NSCondition (unlocked when not locked)
  • Previous by thread: Wake computer from sleep
  • Next by thread: Re: Wake computer from sleep
  • Index(es):
    • Date
    • Thread