• 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: Getting filesize when downloading file with NSURLDownload?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting filesize when downloading file with NSURLDownload?


  • Subject: Re: Getting filesize when downloading file with NSURLDownload?
  • From: Laurent Daudelin <email@hidden>
  • Date: Tue, 19 Jan 2010 11:33:38 -0800

On Jan 19, 2010, at 11:21, Sherm Pendley wrote:

> On Tue, Jan 19, 2010 at 2:13 PM, Laurent Daudelin
> <email@hidden> wrote:
>> I'm using an NSURLDownload to download a file from a server. Is there any way I could find what the size of the file will be so that I could put up a nice progress indicator?
>
> Implement the -download:didReceiveResponse: method in the download
> object's delegate. You can then call the NSURLResponse object's
> -expectedContentLength method.


Thanks a lot! I was just looking at this method and another one to see if I could get it from an NSURLResponse!

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://nemesys.dyndns.org
Logiciels Nemesys Software              				email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries



_______________________________________________

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: 
 >Getting filesize when downloading file with NSURLDownload? (From: Laurent Daudelin <email@hidden>)
 >Re: Getting filesize when downloading file with NSURLDownload? (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Getting filesize when downloading file with NSURLDownload?
  • Next by Date: Re: [iphone] Release Navigation View Controller Question
  • Previous by thread: Re: Getting filesize when downloading file with NSURLDownload?
  • Next by thread: Proper Memory Management
  • Index(es):
    • Date
    • Thread