ASIHttpRequest 备忘

1. NSOperationQueue and NSOperation, do I have to release it?

You have to release your copy that you created.
I assume that you are doing something like:
SomeOperation is subclass of NSOperation which does something.
- (void)start
{
    SomeOperation *so = [[SomeOperation alloc] initWithURL:url];
    [queue addOperation:so];
    [so release];
}

Apple spec:
addOperation:
...
operation
The operation object to be added to the queue. In memory-managed applications, this object is retained by the operation queue. In garbage-collected applications, the queue strongly references the operation object.
Once added, the specified operation remains in the queue until it finishes executing.

你可能感兴趣的:(ASIHTTPRequest)