On Jan 19, 2010, at 11:21, Sherm Pendley wrote: > On Tue, Jan 19, 2010 at 2:13 PM, Laurent Daudelin > <laurent.daude...@gmail.com> 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 laurent.daude...@gmail.com Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com