On Feb 26, 2016, at 16:33 , Jens Alfke <j...@mooseyard.com> wrote: > > What’s the difference between these? If I’m creating an NSError and adding a > URL to it, which one is preferred?
According to NSError documentation: > • NSURLErrorKey > The corresponding value is an NSURL object. > > • NSURLErrorFailingURLErrorKey > The corresponding value is an NSURL containing the URL which caused a load to > fail. This key is only present in the NSURLErrorDomain. > > • NSURLErrorFailingURLStringErrorKey > The corresponding value is an NSString object for the URL which caused a load > to fail. This key is only present in the NSURLErrorDomain. > > This constant supersedes NSErrorFailingURLStringKey, which was deprecated in > OS X v10.6. Both constants refer to the same value for > backward-compatibility, but this symbol name has a better prefix. It sounds like NSURLErrorKey is what you want. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com