NSURLErrorKey vs. NSURLErrorFailingURLErrorKey
NSURLErrorKey vs. NSURLErrorFailingURLErrorKey
- Subject: NSURLErrorKey vs. NSURLErrorFailingURLErrorKey
- From: Jens Alfke <email@hidden>
- Date: Fri, 26 Feb 2016 16:33:48 -0800
So, NSError.h declares NSURLErrorKey, as a userInfo key for the URL associated with the error.
And NSURLError.h declares NSURLErrorFailingURLErrorKey, which appears to have the same purpose.
Neither of these is deprecated, although there’s yet another constant (NSErrorFailingURLStringKey) that is.
What’s the difference between these? If I’m creating an NSError and adding a URL to it, which one is preferred?
—Jens
_______________________________________________
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