How can I observe when an NSURLConnection is cancelled?
I have a method.
- [TSMWebServer sendPage: withArguments: etc...]
The sendPage method returns an "NSURLConnection" pointer. I need the webserver to notice when the NSURLConnection is cancelled. Is there a way to observe when the "NSURLConnection" is cancelled using "NSNotificationCenter" ? I know I could return an "NSInvocation" or some kind of block which cancels connection and signals the "TSMWebServer" object, (the object, not the actual webserver), but I might need more power later, and observing the "NSURLConnection" being cancelled seems better to me. As well, I could return a wrapper object, but that seems like a bunch of unneeded work.
P.S. I'm finding it hard to find the right notifications sometimes. Is there no place in the iOS documentation which lists all notifications used in the standard library?