• 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: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop


  • Subject: Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 2 Oct 2009 10:50:14 +0100


On 1 Oct 2009, at 22:09, Jens Alfke wrote:


On Sep 30, 2009, at 1:32 PM, email@hidden wrote:

I intend to send off my bit of data, hang around ( <= 30 secs) to get notification and then close everything.

Why do you need to wait at all?

—Jens


Sorry the slow response.
My app uses bonjour and queued requests and so I thought I needed to allow some time for address resolution etc to complete.
If I get notification that the data has been sent then I am 100% certain that sleep is goer.


Turns out that the whole process was in vain.
Seems that by the time I get the IOKit sleep notification my Bonjour service has already disconnected so my packets end up going nowhere anyway.


Not sure if I can do much about that. Any ideas?

Jonathan Mitchell

Developer
http://www.mugginsoft.com





_______________________________________________

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: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
      • From: Jens Alfke <email@hidden>
References: 
 >Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSLayoutManager and best override point for temporary attributes
  • Next by Date: Re: reading (parsing) CSV (or Excel) data
  • Previous by thread: Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
  • Next by thread: Re: Sleep, NSWorkspaceWillSleepNotification, 30 seconds and the run loop
  • Index(es):
    • Date
    • Thread