API 0.9.5
CPValue Class Reference

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

#import <CPValue.h>

Inheritance diagram for CPValue:

List of all members.

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

Encodes the data into the specified coder.

Parameters:
thecoder into which the data will be written.

Definition at line 94 of file CPValue.j.

- (id) initWithCoder: (CPCoder aCoder

Initializes the value from a coder.

Parameters:
aCoderthe coder from which to initialize
Returns:
the initialized CPValue

Definition at line 80 of file CPValue.j.

- (id) initWithJSObject: (JSObject)  aJSObject

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

Returns the JavaScript object backing this value.

Definition at line 64 of file CPValue.j.

+ (id) valueWithJSObject: (JSObject)  aJSObject

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:
 All Classes Files Functions Variables Defines