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

Where did NSSession put my file ?


  • Subject: Where did NSSession put my file ?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 29 Sep 2015 11:54:35 +0700

OS X 10.10.5
Trying to download a file with:

session = [ NSURLSession 	sessionWithConfiguration: 	defaultSessionConfiguration
                          			delegate:					self
                     				delegateQueue:			nil
		];
dataTask = [ self.session dataTaskWithRequest: request ];
[ dataTask resume ];

The problem:
NSURLSessionDelegate and NSURLSessionTaskDelegate methods get called (as expected) but none of the NSURLSessionDownloadDelegate methods ever get called.

And these are the only ones (namely …didFinishDownloadingToURL:(NSURL *)location) which would tell me, where my file did end up.

URLSession:task:didCompleteWithError:
tells me that all went well:
<__NSCFLocalDataTask: 0x107d00de0>{ taskIdentifier: 1 } { completed }

What am I doing wrong?

Gerriet


_______________________________________________

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


  • Follow-Ups:
    • Re: Where did NSSession put my file ?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Faster text editing in iOS App
  • Next by Date: Where did NSSession put my file ?
  • Previous by thread: Faster text editing in iOS App
  • Next by thread: Re: Where did NSSession put my file ?
  • Index(es):
    • Date
    • Thread