• 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: Where did NSSession put my file ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Where did NSSession put my file ? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: First responder not coming back to container after editing with NSTextField
  • Next by Date: Debug Pref Pane with System Integrity Protection
  • Previous by thread: Where did NSSession put my file ?
  • Next by thread: Where did NSSession put my file ?
  • Index(es):
    • Date
    • Thread