Re: What does NSURLCredentialPersistenceForSession mean, exactly?
Re: What does NSURLCredentialPersistenceForSession mean, exactly?
- Subject: Re: What does NSURLCredentialPersistenceForSession mean, exactly?
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 22 Feb 2016 07:14:56 +0000
On 19 Feb 2016, at 21:18, Jens Alfke <email@hidden> wrote:
> which makes me wonder why NSURLSessionConfiguration has a URLCredentialStorage property, since there’s no way to create another object to point that property at. Same goes for the HTTPCookieStorage property.
Three points:
* Historically, all of these objects were just plain Objective-C objects so it was reasonable to create your own subclasses. That has become problematic since the core code was moved to CFNetwork, where you have to deal with the interaction between Cocoa and CF code.
* NSURLSessionConfiguration lets you set them to nil.
* On the latest OS release it /is/ possible to create a cookie store elsewhere via +[NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier:].
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden