API  0.9.7
 All Classes Files Functions Variables Macros Groups 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
 

Class Methods

(id) + valueWithJSObject:
 

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: