Re: Where did NSSession put my file ?
Re: Where did NSSession put my file ?
- Subject: Re: Where did NSSession put my file ?
- From: Jens Alfke <email@hidden>
- Date: Tue, 29 Sep 2015 08:30:11 -0700
> On Sep 28, 2015, at 9:54 PM, Gerriet M. Denkmann <email@hidden> wrote:
>
> NSURLSessionDelegate and NSURLSessionTaskDelegate methods get called (as expected) but none of the NSURLSessionDownloadDelegate methods ever get called.
Your NSURLSessionDataDelegate should be getting called, with data coming from this call:
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
didReceiveData:(NSData *)data;
If you want to literally download to a file, you need to call one of the -downloadTaskWith… methods on the NSURLSession.
—Jens
_______________________________________________
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