Re: Sleep Notification

2011-02-15 Thread Matt Neuburg
On Sat, 12 Feb 2011 13:01:28 -0600, Gordon Apple g...@ed4u.com said: If it exists, could somebody point me to notifiers for sleep/wake in iOS? I have a comm link that goes down with sleep. I would like to bring it up again on wake (in case the user forgot to disable sleep). I'm already doing

Re: Sleep Notification

2011-02-15 Thread Gordon Apple
In accordance with the rules, I suspend timers (I have my own suspendable timer wrapper class for NSTimer) and I terminate comm links when in the background. No problem. It works. I get notifications when it re-activates and can re-establish comm. Unfortunately, when the iPad screen goes down,

Re: Sleep Notification

2011-02-15 Thread Laurent Daudelin
Gordon, I use performSelector:withObject:afterDelay: (not exactly NSTimer but close, I would guess), but maybe they don't work exactly the same. I download from the Internet on a regular basis. I thought about those cases when the app is put to the background to sleep and all other situations

Sleep Notification

2011-02-12 Thread Gordon Apple
If it exists, could somebody point me to notifiers for sleep/wake in iOS? I have a comm link that goes down with sleep. I would like to bring it up again on wake (in case the user forgot to disable sleep). I'm already doing this for applicationWillEnterForeground, but that doesn't work for

Need help regarding sleep notification

2010-01-04 Thread Poonam Virupaxi Shigihalli
Hi, I am listening to the notifications NSWorkspaceWillSleepNotification and NSWorkspaceDidWakeNotification in my code. I am getting these notifications, when user selects sleep from system menu. But when system goes to sleep, after being idle for some duration, I am not getting these