On 5 Apr 2016, at 19:56, Jens Alfke <[email protected]> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to