I am successfully using the rather awesome connection:didReceiveAuthenticationChallenge:
delegate method of NSURLConnectionDelegate. Cool.
I want to properly support letting the user cancel out of an authentication challenge. So, the GUI I present to the user has a cancel button and the question is what behavior should happen behind that button.
Currently I do this [[challenge sender] cancelAuthenticationChallenge:challenge]
and I have implemented the NSURLConnectionDelegate method connection:didCancelAuthenticationChallenge:
. In the Apple docs I noticed this rather ambiguous note for this callback:
Available as part of an informal protocol prior to iOS 5.0.
Huh? The callback method that actually fires is connection:didFailWithError:
Can someone please shed some light here?