Represents an operation that can be run in an CPOperationQueue. More...
#import <CPOperation.h>
Instance Variables | |
CPArray | operations |
Additional Inherited Members | |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Represents an operation that can be run in an CPOperationQueue.
It should be subclassed an the subclass should implement its own main method to do the actual work.
Definition at line 2 of file CPOperation.h.
|
implementation |
Makes the receiver dependent on the completion of the specified operation.
anOperation | the operation that the receiver should depend on |
Definition at line 190 of file CPOperation.j.
|
implementation |
Advises the operation object that it should stop executing its task.
Definition at line 235 of file CPOperation.j.
|
implementation |
The JS function that should be run after the main method
Definition at line 173 of file CPOperation.j.
|
implementation |
The operations that the receiver depends on
Definition at line 220 of file CPOperation.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Reimplemented in CPFunctionOperation, and CPInvocationOperation.
Definition at line 83 of file CPOperation.j.
|
implementation |
Indicates if this operation has been cancelled
Definition at line 128 of file CPOperation.j.
|
implementation |
Just added for Cocoa compatibility
Definition at line 155 of file CPOperation.j.
|
implementation |
Indicates if this operation is currently executing
Definition at line 137 of file CPOperation.j.
|
implementation |
Indicates if this operation has finished running
Definition at line 146 of file CPOperation.j.
|
implementation |
Indicates if this operation is ready to be executed. Takes the "isFinished" state of dependent operations into account
Definition at line 164 of file CPOperation.j.
|
implementation |
Reimplemented in CPFunctionOperation, and CPInvocationOperation.
Definition at line 78 of file CPOperation.j.
|
implementation |
Definition at line 261 of file CPOperation.j.
|
implementation |
The priority of the operation when used in an operation queue.
Definition at line 255 of file CPOperation.j.
|
implementation |
Removes the receiver’s dependence on the specified operation.
anOperation | the operation that the receiver should no longer depend on |
Definition at line 206 of file CPOperation.j.
|
implementation |
Sets the JS function that should be run after the main method
Definition at line 181 of file CPOperation.j.
|
implementation |
Sets the priority of the operation when used in an operation queue.
priority | the priority |
Definition at line 246 of file CPOperation.j.
|
implementation |
Starts the operation (runs the main method), sets all the status flags and runs the completion function if it's set
Definition at line 102 of file CPOperation.j.
|
implementation |
Just added for Cocoa compatibility, doesn't do anything
Definition at line 228 of file CPOperation.j.
|
protected |
Definition at line 4 of file CPOperation.h.