私はクラスMyOperation : NSOperationを持っています@property (nonatomic, retain) NSString *oID;
また、特定の操作をキャンセルする必要がある場合もありoIDます。私はこれをやろうとしています:
NSArray *operations = operationQueue.operations;
NSPredicate *predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat: @"oID == %@", _specificID]];
NSArray *arrayOperations = [operations filteredArrayUsingPredicate: predicate];
エラーが発生します:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to parse the format string "oID == 0f5db97b-f127-4425-ad79-451d1f204016"'
NSOperationQueue から操作をフィルタリングすることは可能ですか?