• 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: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
      • From: Jens Alfke <email@hidden>
References: 
 >NSURLErrorFailingURLErrorKey vs. NSURLErrorKey (From: Jens Alfke <email@hidden>)

  • Prev by Date: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
  • Next by Date: Re: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
  • Previous by thread: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
  • Next by thread: Re: NSURLErrorFailingURLErrorKey vs. NSURLErrorKey
  • Index(es):
    • Date
    • Thread