kCFErrorDomainCFNetwork == NSURLErrorDomain ; // But headers say otherwise
kCFErrorDomainCFNetwork == NSURLErrorDomain ; // But headers say otherwise
- Subject: kCFErrorDomainCFNetwork == NSURLErrorDomain ; // But headers say otherwise
- From: Jerry Krinock <email@hidden>
- Date: Wed, 30 Sep 2009 20:48:42 -0700
In the header file CFNetworkErrors.h, the "Discussion" of enum
CFNetworkErrors says:
"The list of all error codes returned under the error domain
kCFErrorDomainCFNetwork."
Well, I have received today (from [NSURLConnection
sendSynchronousRequest:returningResponse:error:&error]) NSErrors in
that domain which had codes -1009 and -1012. Neither of these codes
are defined in that enum, or anywhere in CFNetworkErrors.h.
These codes are correctly defined in an anonymous enum in
NSURLError.h. Although the error domain is not stated in
NSURLError.h, I have seen these codes in errors in NSURLErrorDomain.
But it's odd that this header is apparently being ignored when the
system is built! Could someone please confirm that CFNetworkErrors.h
is depracated, and that kCFErrorDomainCFNetwork uses the same codes as
NSURLErrorDomain?
Sincerely,
Jerry Krinock
_______________________________________________
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