如果我通过NSOperation
创建NSInvocationOperation
,那么所选选择器的完成是否会导致NSOperation
完成并从操作队列中删除?
例如:
...
NSDictionary* params = @{KEY_SERVER_ID:serverId, KEY_USERNAME:username, KEY_PASSWORD:password};
NSInvocationOperation* op = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(publishBulletinBoardRead:) object:params];
[[NSOperationQueue currentQueue] addOperation:op];
...
当publishBulletinBoardRead:
返回时,我可以假设操作已从队列中删除吗?