NSURLDownload resumeData always nil
NSURLDownload resumeData always nil
- Subject: NSURLDownload resumeData always nil
- From: "Andrew Zahra" <email@hidden>
- Date: Tue, 23 Sep 2008 12:41:55 +1000
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