• 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: "Andrew Zahra" <email@hidden>
  • Date: Fri, 26 Sep 2008 20:15:33 +1000

Sorry I didn't see your reply earlier due to digest mode...
I have confirmed with Wireshark that my test download file:
http://google-web-toolkit.googlecode.com/files/gwt-mac-1.5.2.tar.gz
includes and ETag.
Then I do this:

- (void)cancel

{

   [download cancel];

  resumeData = [download resumeData];

 if (resumeData == nil)
{
 NSLog(@"STILL No resume data :(");
}

   [self setDownloading:NO];
}

And still the result is no resume data.

Any ideas or working examples?

>Almost forgot.... additionally, you have to call the Cancel method
>before checking resumeData, otherwise it's nil.

On Sep 23, 2008, at 12:17 PM, email@hidden wrote:

> If the response header does not include an ETag, NSURLDownload will
> always return a nil resumeData.
>
>
> On Sep 22, 2008, at 10:41 PM, Andrew Zahra 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)
>>
>> {
>>
>> NSLog(@"No resume data :(");
>>
>> }
>>
>> Any suggestions?
>>
>> thanks,
>> Andrew
_______________________________________________

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

  • Prev by Date: Re: Converting from Carbon Event Manager to NSTimer
  • Next by Date: Re: objc_msgSend_ptr
  • Previous by thread: Re: NSURLDownload resumeData always nil
  • Next by thread: Dragging tableView rows to an external applications
  • Index(es):
    • Date
    • Thread