API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
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: 
 
(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: 
 
(Class) + class 
 
(void) + exposeBinding: 
 
(void) + initialize 
 
(IMP) + instanceMethodForSelector: 
 
(BOOL) + instancesRespondToSelector: 
 
(BOOL) + isSubclassOfClass: 
 
(CPSet) + keyPathsForValuesAffectingValueForKey: 
 
(void) + load 
 
(id) + new 
 
(void) + setVersion: 
 
(Class) + superclass 
 
(int) + version 
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

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

- (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 94 of file CPValue.j.

- (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 80 of file CPValue.j.

- (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 51 of file CPValue.j.

- (JSObject) JSObject
implementation

Returns the JavaScript object backing this value.

Definition at line 64 of file CPValue.j.

+ (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 41 of file CPValue.j.


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