Re: Standby: Handling going into and coming out from standby
Re: Standby: Handling going into and coming out from standby
- Subject: Re: Standby: Handling going into and coming out from standby
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 17 Mar 2007 22:20:15 -0600
On Mar 17, 2007, at 7:43 PM, Ryan Homer wrote:
Can someone point me to the right documentation? I've not been able
to find anything at all on this. I want my application to be able
to detect when the computer is about to go into standby and also to
detect when the computer has just come out of standby.
I believe applications like iChat are standby aware in that it
closes the network connection before the computer goes into standby
and also re-establishes the connection when the computer comes out
of standby.
NSWorkspace has sleep/wake notifications, assuming you can target
Panther and later. If you listen to the sleep notification, anything
your program does ought to do it fast.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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