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

Sleep Notification?


  • Subject: Sleep Notification?
  • From: Chad Jones <email@hidden>
  • Date: Wed, 27 Aug 2003 19:19:40 -0700

In Panther the notifications for wake/sleep in Cocoa are:
NSWorkspaceWillSleepNotification and NSWorkspaceDidWakeNotification.

Previous to Panther you need to use IOKit.


Is there any notification that can notify an app that the computer is
about to go to sleep?

I tried NSWorkspace's NSWorkspaceWillPowerOffNotification but that
only covers logging out and powering down.

So anybody know a way to be notified of a sleep?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Notification of Front Process Changed
  • Next by Date: Re: NSRect, views....
  • Previous by thread: Re: Sleep Notification?
  • Next by thread: Make NSTextField recieve all keyboard events
  • Index(es):
    • Date
    • Thread