Re: Getting filesize when downloading file with NSURLDownload?
Re: Getting filesize when downloading file with NSURLDownload?
- Subject: Re: Getting filesize when downloading file with NSURLDownload?
- From: Sherm Pendley <email@hidden>
- Date: Tue, 19 Jan 2010 14:21:16 -0500
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.
sherm--
--
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________
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