• 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: NSURLDownload mysteriously pausing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLDownload mysteriously pausing


  • Subject: Re: NSURLDownload mysteriously pausing
  • From: Michael Babin <email@hidden>
  • Date: Fri, 18 Feb 2011 08:14:44 -0600

On Feb 16, 2011, at 1:00 PM, Sidney San Martín wrote:

> Greetings!
> I ran into an issue recently where file downloads seemed to take a ridiculous amount of time to finish, or never finished at all. I could reproduce it, even in a stripped-down test application.
>
> The NSURLDownload appears to pause indefinitely whenever there is no other activity in the application. Any activity at all — a key press while the application is in front, moving a window around, etc. — makes it continue for a short amount of time (which can be observed in the log or in Activity Monitor's network activity graph).
>
> Below is the main class of a test application with a main class called downloaderAppDelegate. The issue's reproducible for me by dropping it into a new Xcode Cocoa application project.
>
> What the heck is going on?

To quote from:

<http://developer.apple.com/library/mac/#documentation/cocoa/reference/Foundation/Classes/NSURLDownload_Class/Reference/Reference.html>

"For the download to work correctly the calling thread’s run loop must be operating in the default run loop mode."

Doing anything out of the ordinary with the run loop?

- Mike


_______________________________________________

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: NSURLDownload mysteriously pausing
      • From: Sidney San Martín <email@hidden>
References: 
 >NSURLDownload mysteriously pausing (From: Sidney San Martín <email@hidden>)

  • Prev by Date: RE: NSToolbarItem not displaying
  • Next by Date: Re: NSURLDownload mysteriously pausing
  • Previous by thread: NSURLDownload mysteriously pausing
  • Next by thread: Re: NSURLDownload mysteriously pausing
  • Index(es):
    • Date
    • Thread