CPObjectCPValue
@implementation CPValue : CPObject
The class can be subclassed to hold different types of scalar values.
Method Summary | |
---|---|
+(id) | valueWithJSObject:(JSObject)aJSObject Creates a value from the specified JavaScript object. |
-(id) | initWithCoder:(CPCoder)aCoder Initializes the value from a coder. |
-(id) | initWithJSObject:(JSObject)aJSObject Initializes the value from a JavaScript object. |
-(JSObject) | JSObject Returns the JavaScript object backing this value. |
-(void) | encodeWithCoder:(CPCoder)aCoder Encodes the data into the specified coder. |
Method Detail |
---|
+(id)valueWithJSObject:(JSObject)aJSObject
aJSObject
- a JavaScript object containing a valueCPValue
-(id)initWithCoder:(CPCoder)aCoder
aCoder
- the coder from which to initializeCPValue
-(id)initWithJSObject:(JSObject)aJSObject
aJSObject
- the object to get data fromCPValue
-(JSObject)JSObject
-(void)encodeWithCoder:(CPCoder)aCoder
aCoder
Created on Sat Sep 13 14:15:43 PDT 2008