Questions tagged [nsurldownload]

NSURLDownload provides an application the ability to download the contents of a URL directly to disk. It is available in OS X v10.2 with Safari 1.0 installed, available in OS X v10.2.7 and later This tag should be used only on questions that are about NSURLDownload. The tags [NSURLDownload] and [NSURLDownloadDelegate] should be used to ask about. Use the related tags [osx] for issues specific to those platforms. It is not available in iOS.

NSURLDownload provides an application the ability to download the contents of a URL directly to disk. It provides an interface similar to NSURLConnection, adding an additional method for specifying the destination of the file. NSURLDownload can also decode commonly used encoding schemes such as MacBinary, BinHex and gzip. Unlike NSURLConnection, data downloaded using NSURLDownload is not stored in the cache system.

More Details

14 questions
2
votes
0 answers

Amazon CloudFront vs ExpressVPN

We have Mac and Windows apps that access online data files frequently. These are used for weather and earthquake data, among other things. Our files are hosted on a Amazon CloudFront distribution backed by an S3 bucket. Recently, people who are…
Trygve
  • 1,317
  • 10
  • 27
2
votes
0 answers

NSURLDownload and self-signed certificates

I'm attempting to use NSURLDownload to download files from a web server with a self-signed certificate. This normally results in: NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9812) or similar. According to the…
2
votes
1 answer

Do NSURLDownload resume automatically handle modified data?

I know if I save resume data when my download failed, i can resume downloading later. I wonder if the original file from server is modified before I try to resume downloading, 'initWithResumeData:delegate:path' will handle to decide to download from…
WoffOVkee
  • 435
  • 3
  • 16
1
vote
0 answers

Several NSURLDownloads hang (timeout)

I start a few NSURLDownloads with simple HTTP NSURLRequests (e.g. 3 threads with 3 or 5 downloads in each thread). Threads run like this: - (void)threadSelector:(id)obj { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; while…
1
vote
1 answer

Download from list of assets to local storage for ios 7 app

I have a simple task, yet I am still not sure of the best way to accomplish this. I have a json endpoint that defines a list of assets that my app relies upon that need to be preloaded. They are images, and audio files. Given the nature of my app, I…
nwales
  • 3,521
  • 2
  • 25
  • 47
1
vote
1 answer

nsprogressindictor progress not getting fully completing after nsurldownload in cocoa webview

My progress indicator is not working in cocoa webview I used this code - -(void)download:(NSURLDownload *)download didReceiveResponse:(NSURLResponse *)response { NSLog(@"downl didreceiveresponse here"); …
Sierra
  • 337
  • 3
  • 15
1
vote
2 answers

NSURLDownload delegate methods on a separate thread

Is anyone aware of a way to receive NSURLDownload's delegate methods on a separate thread, i.e. not the main one? I am using an NSOperationQueue to manage them but at the moment I need to use the performSelectorOnMainThread method to get it too…
Colin
0
votes
0 answers

URLSession downloadTask not getting to closure Swift

I have downloadTask, I'm a trying to download a video using downloadTask but it doesn't seem to work; whenever I download small files likes pictures or small videos it works perfectly but the videos I am now trying to download are really long, I…
0
votes
1 answer

NSURLDownload: Assertion failed ([path isAbsolutePath]) troubles

I'm trying to download a file off the internet and place it in the application name directory under the Application Support directory and I keep getting a Assertion failed: ([path isAbsolutePath]), function -[NSURLDownload …
Ryan Knopp
  • 582
  • 1
  • 4
  • 12
0
votes
2 answers

NSURLDownload failing

I'm trying to download a file in my cocoa app as follows : NSURLRequest *downloadRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:downloadURL]]; NSURLDownload *downloader = [[NSURLDownload alloc] initWithRequest:downloadRequest…
AyushISM
  • 381
  • 7
  • 21
0
votes
1 answer

Slow download with Apple sample code + progress

I have implemented the following methods from the Apple site, available on this page: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLDownload.html //on my .h file: @interface AppDelegate :…
Mike97
  • 596
  • 5
  • 20
0
votes
1 answer

BackGround Downloading speed in iOS

Is there any speed difference in download speed when app is in background.I am using NSURLSession to download a set of files in background.Also can we restrict the downloads of items to one because when i checked the sample,3 files are getting…
0
votes
2 answers

Having custom loading animation for IoS loading from server

I am porting an android application to iPhone. There is a custom alertdialog for android with custom animation for loading contents from the server. Can we replicate this on iPhone?? Kindly guide for the same and oblige.
rafavinu
  • 305
  • 4
  • 20
-2
votes
2 answers

Protect downloaded files

I'm making an application that downloads external files (images and documents) using NSURLDownlod. But I need to keep this files protected. If the user downloads some file using NRURLDownload, this file cannot be accessible to in another place. For…
Hykaruz
  • 5
  • 3