![]() |
API
0.9.6
|
Represents an operation that can be run in an CPOperationQueue. More...
#import <CPOperation.h>
Instance Variables | |
CPArray | operations |
![]() | |
Class | isa |
Additional Inherited Members | |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(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 188 of file CPOperation.j.
|
implementation |
Advises the operation object that it should stop executing its task.
Definition at line 233 of file CPOperation.j.
|
implementation |
The JS function that should be run after the main method
Definition at line 171 of file CPOperation.j.
|
implementation |
The operations that the receiver depends on
Definition at line 218 of file CPOperation.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Reimplemented in CPFunctionOperation, and CPInvocationOperation.
Definition at line 82 of file CPOperation.j.
|
implementation |
Indicates if this operation has been cancelled
Definition at line 126 of file CPOperation.j.
|
implementation |
Just added for Cocoa compatibility
Definition at line 153 of file CPOperation.j.
|
implementation |
Indicates if this operation is currently executing
Definition at line 135 of file CPOperation.j.
|
implementation |
Indicates if this operation has finished running
Definition at line 144 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 162 of file CPOperation.j.
|
implementation |
Reimplemented in CPFunctionOperation, and CPInvocationOperation.
Definition at line 77 of file CPOperation.j.
|
implementation |
Definition at line 259 of file CPOperation.j.
|
implementation |
The priority of the operation when used in an operation queue.
Definition at line 253 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 204 of file CPOperation.j.
|
implementation |
Sets the JS function that should be run after the main method
Definition at line 179 of file CPOperation.j.
|
implementation |
Sets the priority of the operation when used in an operation queue.
priority | the priority |
Definition at line 244 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 101 of file CPOperation.j.
|
implementation |
Just added for Cocoa compatibility, doesn't do anything
Definition at line 226 of file CPOperation.j.
|
protected |
Definition at line 4 of file CPOperation.h.