Quick one: Finding a specific allocated object in my class
I feel stupid for asking this. But in a class, I alloc an ASIHTTPRequest. This is done in the implementation alone, not the interface, since it's an autoreleased object.
I am not sure sure how to cancel this request. I have the following:
for (ASIHTTPRequest *request in ???????) {
[request clearDelegatesAndCancel];
}
Basically, I a开发者_JAVA技巧m not sure where and what in my class to look for to find the request that's currently running?
Thanks
You need to store your request somewhere, i.e. in an ivar.
精彩评论