• 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
Getting Notification of Sleep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting Notification of Sleep


  • Subject: Getting Notification of Sleep
  • From: Ed Baskerville <email@hidden>
  • Date: Fri, 28 Sep 2001 20:26:37 -0400

I'm writing an app that uses NSTimers to schedule messages at particular times, but when the computer goes to sleep, the timers stop running...meaning that if something's scheduled for 10 PM, and you put the computer to sleep for half an hour, the message won't get sent until 10:30. Is there any way to get notification that the computer just woke from sleep from Cocoa? Or if not from Cocoa, from Carbon?

--Ed Baskerville


  • Follow-Ups:
    • Re: Getting Notification of Sleep
      • From: Andreas Monitzer <email@hidden>
  • Prev by Date: Re: assigning delete key to menu item
  • Next by Date: NSImage/ImageRep/ImageView
  • Previous by thread: Re: Does cocoa just leak?
  • Next by thread: Re: Getting Notification of Sleep
  • Index(es):
    • Date
    • Thread