Let's say I have some kind of static class, I mean .h class for my static library with all static functions. Some of function do async request to web service and using NSMutableURLRequest with initWithRequest:request. Since I want to monitor data coming from the server I create a delegate which implements all the NSURLConnectionDelegate connection protocol i.e. accept, append, finish and pass it to request.
The question is since I have all static methods in my .h class and I don't have a NSURLConnectionDelegate delegate as member (since class is static), where do I release my connection delegate? and the main question is it a common practice to do a self release on NSURLConnectionDelegate in connectionDidFinishLoading delegate method?
thanks