• 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 resumeData always nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSURLDownload resumeData always nil


  • Subject: Re: NSURLDownload resumeData always nil
  • From: "Michael Ash" <email@hidden>
  • Date: Tue, 23 Sep 2008 10:56:20 -0400

On Mon, Sep 22, 2008 at 10:41 PM, Andrew Zahra <email@hidden> wrote:
> I am experimenting with the resume functionality in NSURLDownload, however I
> always get nil back when I call resumeData. I have tried a couple of
> different sites and then tried using wget to get the files. wget resumes the
> files fine, so I think I am doing something wrong.
> This is the code in question, which is a modification of the Downloader
> example supplied by Apple:
>
> download = [[WebDownload alloc] initWithRequest:[NSURLRequest
> requestWithURL:URL]
> delegate:self];
>
> [download setDeletesFileUponFailure:NO];
>
> resumeData = [download resumeData];
>
> if (resumeData == nil)

Is this your actual code? If so, it seems rather odd, as you're asking
for the resumeData before you give the downloader a chance to actually
download anything. Try waiting a while so it can download some data,
then see if there's any resume data to be had.

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

References: 
 >NSURLDownload resumeData always nil (From: "Andrew Zahra" <email@hidden>)

  • Prev by Date: Re: Setting "Open With" program/file association programmatically (command line or script)
  • Next by Date: Re: Application frameworks for Objective-C?
  • Previous by thread: NSURLDownload resumeData always nil
  • Next by thread: Re: NSURLDownload resumeData always nil
  • Index(es):
    • Date
    • Thread