Re: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
Re: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
- Subject: Re: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Mon, 11 Apr 2016 08:51:52 +0100
On 5 Apr 2016, at 19:56, Jens Alfke <email@hidden> wrote:
> What’s the difference between these?
AFAICT NSURLErrorKey is used by general Cocoa code and NSURLErrorFailingURLErrorKey is used by Foundation networking.
To understand this, you have to look at the history. NSURLErrorFailingURLErrorKey is the logical replacement for NSErrorFailingURLStringKey, which dates from the introduction of Foundation networking with Safari (rolled into the system with 10.2.x IIRC). Being in <Foundation/NSURLRError.h>, it only makes sense to use from Foundation networking code. NSURLErrorKey was introduced with 10.4, which is the start point for Foundation's long move to using NSURL for more than just networking.
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