API  0.9.10
CPValue Class Reference

A generic "value". Can be subclassed to hold specific data types. More...

#import <CPValue.h>

+ Inheritance diagram for CPValue:

Instance Methods

(void) - encodeWithCoder:
 
(id) - initWithCoder:
 
(id) - initWithJSObject:
 
(JSObject) - JSObject
 
- 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:
 
(id) - init
 
(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) + valueWithJSObject:
 
- 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
 

Detailed Description

A generic "value". Can be subclassed to hold specific data types.

The class can be subclassed to hold different types of scalar values.

Definition at line 2 of file CPValue.h.

Method Documentation

◆ encodeWithCoder:()

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Encodes the data into the specified coder.

Parameters
thecoder into which the data will be written.

Provided by category CPValue(CPCoding).

Definition at line 93 of file CPValue.j.

◆ initWithCoder:()

- (id) initWithCoder: (CPCoder aCoder
implementation

Initializes the value from a coder.

Parameters
aCoderthe coder from which to initialize
Returns
the initialized CPValue

Provided by category CPValue(CPCoding).

Definition at line 79 of file CPValue.j.

◆ initWithJSObject:()

- (id) initWithJSObject: (JSObject aJSObject
implementation

Initializes the value from a JavaScript object

Parameters
aJSObjectthe object to get data from
Returns
the initialized CPValue

Definition at line 50 of file CPValue.j.

◆ JSObject()

- (JSObject) JSObject
implementation

Returns the JavaScript object backing this value.

Definition at line 63 of file CPValue.j.

◆ valueWithJSObject:()

+ (id) valueWithJSObject: (JSObject aJSObject
implementation

Creates a value from the specified JavaScript object

Parameters
aJSObjecta JavaScript object containing a value
Returns
the converted CPValue

Definition at line 40 of file CPValue.j.


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