Represents an operation queue that can run CPOperations. More...
#import <CPOperationQueue.h>
Class Methods | |
(CPOperationQueue) | + currentQueue |
(CPOperationQueue) | + mainQueue |
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 queue that can run CPOperations.
Definition at line 2 of file CPOperationQueue.h.
|
implementation |
Adds the specified operation object to the receiver.
anOperation | the operation that should be scheduled for execution |
Definition at line 100 of file CPOperationQueue.j.
|
implementation |
Adds the specified array of operations to the queue.
ops | The array of CPOperation objects that you want to add to the receiver. |
wait | If YES, the method only returns once all of the specified operations finish executing. If NO, the operations are added to the queue and control returns immediately to the caller. |
Definition at line 115 of file CPOperationQueue.j.
|
implementation |
Wraps the given js function in a CPOperation and adds it to the queue
aFunction | the JS function to add |
Definition at line 134 of file CPOperationQueue.j.
|
implementation |
Cancels all queued and executing operations.
Definition at line 157 of file CPOperationQueue.j.
|
implementation |
Convenience method for one system wide singleton queue. Returns the same queue as mainQueue.
Definition at line 291 of file CPOperationQueue.j.
|
implementation |
Initializes the receiver
Reimplemented from CPObject.
Definition at line 37 of file CPOperationQueue.j.
|
implementation |
Returns a Boolean value indicating whether the receiver is scheduling queued operations for execution.
Definition at line 208 of file CPOperationQueue.j.
|
implementation |
Convenience method for one system wide singleton queue. Returns the same queue as currentQueue.
Definition at line 277 of file CPOperationQueue.j.
|
implementation |
Returns the maximum number of concurrent operations that the receiver can execute. Always returns 1 because JS doesn't have threads
Definition at line 190 of file CPOperationQueue.j.
|
implementation |
Synthesized accessor method.
Provided by category CPOperationQueue(CPSynthesizedAccessors).
Definition at line 303 of file CPOperationQueue.j.
|
implementation |
Definition at line 144 of file CPOperationQueue.j.
|
implementation |
Definition at line 139 of file CPOperationQueue.j.
|
implementation |
Synthesized accessor method.
Provided by category CPOperationQueue(CPSynthesizedAccessors).
Definition at line 311 of file CPOperationQueue.j.
|
implementation |
Modifies the execution of pending operations
suspend | if YES, queue execution is suspended. If NO, it is resumed |
Definition at line 199 of file CPOperationQueue.j.
|
implementation |
Blocks until all of the receiver’s queued and executing operations finish executing.
Definition at line 174 of file CPOperationQueue.j.