• 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: finding the transfer rate of a download
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finding the transfer rate of a download


  • Subject: Re: finding the transfer rate of a download
  • From: Matthew Delves <email@hidden>
  • Date: Mon, 14 Jan 2008 16:29:11 +1100


On 12/01/2008, at 5:24 PM, Scott Anguish wrote:


On Jan 12, 2008, at 12:18 AM, Matthew Delves wrote:

For an app that I'm creating, I am performing downloads using NSURLDownload. Though I'm having trouble figuring out how to determine the transfer rate for the download.

Does anyone know of a solution to this problem?

You can save the start time, track the progress.. some simple division, there you go.


The URL Loading System conceptual doc tells you how to track the download progress...


Sorry for the late reply, I'm familiar with the doc though unfortunately it only covers calculating the percentage complete. I have it currently so that it covers the average speed over the entire download. Unfortunately, when I try to change it so that it will reset the timer after a couple of seconds, it gets to the stage whereby the method is called again before it has had time to complete. This is due to the method containing the calculations being a delegate method. I hope I have explained this well enough.


Any help would be greatly appreciated.

Thanks,
Matthew Delves
_______________________________________________

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


References: 
 >finding the transfer rate of a download (From: Matthew Delves <email@hidden>)
 >Re: finding the transfer rate of a download (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Private Frameworks
  • Next by Date: Re: Private Frameworks
  • Previous by thread: Re: finding the transfer rate of a download
  • Next by thread: Display PDF in CALayer
  • Index(es):
    • Date
    • Thread