API  0.9.7
 All Classes Files Functions Variables Macros Groups Pages
CPFunctionOperation Class Reference

Represents an operation using a JavaScript function that can be run in an CPOperationQueue. More...

#import <CPFunctionOperation.h>

+ Inheritance diagram for CPFunctionOperation:

Instance Methods

(void) - addExecutionFunction:
 
(CPArray) - executionFunctions
 
(id) - init
 
(void) - main
 
- Instance Methods inherited from CPOperation
(void) - addDependency:
 
(void) - cancel
 
(JSObject) - completionFunction
 
(CPArray) - dependencies
 
(BOOL) - isCancelled
 
(BOOL) - isConcurrent
 
(BOOL) - isExecuting
 
(BOOL) - isFinished
 
(BOOL) - isReady
 
(void) - observeValueForKeyPath:ofObject:change:context:
 
(int) - queuePriority
 
(void) - removeDependency:
 
(void) - setCompletionFunction:
 
(void) - setQueuePriority:
 
(void) - start
 
(void) - waitUntilFinished
 

Class Methods

(id) + functionOperationWithFunction:
 

Additional Inherited Members

- Instance Variables inherited from CPOperation
CPArray operations
 

Detailed Description

Represents an operation using a JavaScript function that can be run in an CPOperationQueue.

Definition at line 2 of file CPFunctionOperation.h.

Method Documentation

- (void) addExecutionFunction: (JSObject)  jsFunction
implementation

Adds the specified JS function to the receiver’s list of functions to perform.

Definition at line 61 of file CPFunctionOperation.j.

- (CPArray) executionFunctions
implementation

Returns an array containing the functions associated with the receiver.

Definition at line 69 of file CPFunctionOperation.j.

+ (id) functionOperationWithFunction: (JSObject)  jsFunction
implementation

Creates and returns an CPFunctionOperation object and adds the specified function to it.

Definition at line 77 of file CPFunctionOperation.j.

- (id) init
implementation

Reimplemented from CPOperation.

Definition at line 47 of file CPFunctionOperation.j.

- (void) main
implementation

Reimplemented from CPOperation.

Definition at line 32 of file CPFunctionOperation.j.


The documentation for this class was generated from the following files: