API  1.0.0
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 
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context: 
 
(void) - applyChange:toKeyPath: 
 
(id) - autorelease 
 
(id) - awakeAfterUsingCoder: 
 
(void) - awakeFromCib 
 
(void) - bind:toObject:withKeyPath:options: 
 
(Class) - classForCoder 
 
(Class) - classForKeyedArchiver 
 
(CPString) - className 
 
(id) - copy 
 
(void) - dealloc 
 
(CPString) - description 
 
(CPDictionary) - dictionaryWithValuesForKeys: 
 
(void) - didChange:valuesAtIndexes:forKey: 
 
(void) - didChangeValueForKey: 
 
(void) - didChangeValueForKey:withSetMutation:usingObjects: 
 
(void) - doesNotRecognizeSelector: 
 
(CPArray) - exposedBindings 
 
(id) - forwardingTargetForSelector: 
 
(void) - forwardInvocation: 
 
(unsigned) - hash 
 
(BOOL) - implementsSelector: 
 
(CPDictionary) - infoForBinding: 
 
(BOOL) - isEqual: 
 
(BOOL) - isKindOfClass: 
 
(BOOL) - isMemberOfClass: 
 
(BOOL) - isProxy 
 
(IMP) - methodForSelector: 
 
(CPMethodSignature) - methodSignatureForSelector: 
 
(id) - mutableArrayValueForKey: 
 
(id) - mutableArrayValueForKeyPath: 
 
(id) - mutableCopy 
 
(id) - mutableSetValueForKey: 
 
(id) - mutableSetValueForKeyPath: 
 
(id) - performSelector: 
 
(id) - performSelector:withObject: 
 
(void) - performSelector:withObject:afterDelay: 
 
(void) - performSelector:withObject:afterDelay:inModes: 
 
(id) - performSelector:withObject:withObject: 
 
(id) - performSelector:withObjects: 
 
(void) - release 
 
(void) - removeObserver:forKeyPath: 
 
(id) - replacementObjectForArchiver: 
 
(id) - replacementObjectForCoder: 
 
(id) - replacementObjectForKeyedArchiver: 
 
(BOOL) - respondsToSelector: 
 
(id) - retain 
 
(id) - self 
 
(void) - setValue:forKey: 
 
(void) - setValue:forKeyPath: 
 
(void) - setValue:forUndefinedKey: 
 
(void) - setValuesForKeysWithDictionary: 
 
(CPString) - UID 
 
(void) - unbind: 
 
(Class) - valueClassForBinding: 
 
(id) - valueForKey: 
 
(id) - valueForKeyPath: 
 
(id) - valueForUndefinedKey: 
 
(void) - willChange:valuesAtIndexes:forKey: 
 
(void) - willChangeValueForKey: 
 
(void) - willChangeValueForKey:withSetMutation:usingObjects: 
 

Class Methods

(id) + functionOperationWithFunction: 
 
- 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 
 

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

◆ addExecutionFunction:()

- (void) addExecutionFunction: (JSObject)  jsFunction
implementation

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

Definition at line 60 of file CPFunctionOperation.j.

◆ executionFunctions()

- (CPArray) executionFunctions
implementation

Returns an array containing the functions associated with the receiver.

Definition at line 68 of file CPFunctionOperation.j.

◆ functionOperationWithFunction:()

+ (id) functionOperationWithFunction: (JSObject)  jsFunction
implementation

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

Definition at line 76 of file CPFunctionOperation.j.

◆ init()

- (id) init
implementation

Initializes the receiver

Returns
the initialized receiver

Reimplemented from CPOperation.

Definition at line 46 of file CPFunctionOperation.j.

◆ main()

- (void) main
implementation

Reimplemented from CPOperation.

Definition at line 31 of file CPFunctionOperation.j.


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