CPValue Class Reference
[Foundation]
A generic "value". Can be subclassed to hold specific data types.
More...
List of all members.
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 34 of file CPValue.j.
Member Function Documentation
- (void) encodeWithCoder: |
|
(CPCoder) |
aCoder |
|
[implementation] |
Encodes the data into the specified coder.
- Parameters:
-
| the | coder into which the data will be written. |
Definition at line 97 of file CPValue.j.
- (id) initWithCoder: |
|
(CPCoder) |
aCoder |
|
[implementation] |
Initializes the value from a coder.
- Parameters:
-
| aCoder | the coder from which to initialize |
- Returns:
- the initialized CPValue
Definition at line 83 of file CPValue.j.
- (id) initWithJSObject: |
|
(JSObject) |
aJSObject |
|
[implementation] |
Initializes the value from a JavaScript object
- Parameters:
-
| aJSObject | the object to get data from |
- Returns:
- the initialized CPValue
Definition at line 54 of file CPValue.j.
- (JSObject) JSObject |
|
|
|
[implementation] |
Returns the JavaScript object backing this value.
Definition at line 67 of file CPValue.j.
+ (id) valueWithJSObject: |
|
(JSObject) |
aJSObject |
|
[implementation] |
Creates a value from the specified JavaScript object
- Parameters:
-
| aJSObject | a JavaScript object containing a value |
- Returns:
- the converted CPValue
Definition at line 44 of file CPValue.j.
The documentation for this class was generated from the following file: