Initial checkin.
2 // ConcurrentOperation.m
5 // Created by Jens Alfke on 2/5/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import "ConcurrentOperation.h"
11 // See file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/NSOperation_class/Reference/Reference.html#//apple_ref/doc/uid/TP40004591-RH2-DontLinkElementID_4
14 @implementation ConcurrentOperation
17 - (BOOL) isConcurrent {return YES;}
21 Assert(NO,@"Shouldn't call -main method of ConcurrentOperation");
37 Log(@"Starting %@",self);
38 [self willChangeValueForKey: @"isExecuting"];
40 [self didChangeValueForKey: @"isExecuting"];
45 Log(@"Finished %@",self);
46 [self willChangeValueForKey: @"isExecuting"];
47 [self willChangeValueForKey: @"isFinished"];
50 [self didChangeValueForKey: @"isFinished"];
51 [self didChangeValueForKey: @"isExecuting"];
57 Log(@"Canceling %@",self);
60 [self willChangeValueForKey: @"isExecuting"];
62 [self didChangeValueForKey: @"isExecuting"];