dingbat/nsrails

cancel a request

beno opened this issue · 0 comments

beno commented

For an autocomplete/typeahead style solution I would like to be able to cancel a running NSRRequest, but the NSURLConnection is not retained. Is there a particular reason for this?

Edit: Upon further investigation I must conclude that NSURLConnection is a very strange thing. It has class methods to send a request, but instance methods to cancel one. As far as I can tell there is no way to obtain a reference to the sent request. This is so weird to me, what am I missing?
I know this is becoming more of a generic iOS issue, but I guess the use case for canceling a running request is pretty generic for Rails based APIs? Hopefully someone can shed some light.