API  0.9.8
 All Classes Files Functions Variables Typedefs Macros Groups Pages
CPNumber Class Reference

A bridged object to native Javascript numbers. More...

#import <CPNumber.h>

+ Inheritance diagram for CPNumber:

Instance Methods

(BOOL) - boolValue
 
(char) - charValue
 
(CPComparisonResult) - compare:
 
(CPDecimal) - decimalValue
 
(CPString- description
 
(CPString- descriptionWithLocale:
 
(double) - doubleValue
 
(void) - encodeWithCoder:
 
(float) - floatValue
 
(id) - initWithBool:
 
(id) - initWithChar:
 
(id) - initWithCoder:
 
(id) - initWithDouble:
 
(id) - initWithFloat:
 
(id) - initWithInt:
 
(id) - initWithLong:
 
(id) - initWithLongLong:
 
(id) - initWithShort:
 
(id) - initWithUnsignedChar:
 
(id) - initWithUnsignedInt:
 
(id) - initWithUnsignedLong:
 
(id) - initWithUnsignedShort:
 
(int) - intValue
 
(BOOL) - isEqualToNumber:
 
(long long) - longLongValue
 
(long) - longValue
 
(short) - shortValue
 
(CPString- stringValue
 
(CPString- UID
 
(unsigned char) - unsignedCharValue
 
(unsigned int) - unsignedIntValue
 
(unsigned long) - unsignedLongValue
 
(unsigned short) - unsignedShortValue
 
- 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
 
(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:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(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:
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(id) + alloc
 
(id) + numberWithBool:
 
(id) + numberWithChar:
 
(id) + numberWithDouble:
 
(id) + numberWithFloat:
 
(id) + numberWithInt:
 
(id) + numberWithLong:
 
(id) + numberWithLongLong:
 
(id) + numberWithShort:
 
(id) + numberWithUnsignedChar:
 
(id) + numberWithUnsignedInt:
 
(id) + numberWithUnsignedLong:
 
(id) + numberWithUnsignedShort:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Detailed Description

A bridged object to native Javascript numbers.

This class primarily exists for source compatibility. The JavaScript Number type can be changed on the fly based on context, so there is no need to call any of these methods.

In other words, native JavaScript numbers are bridged to CPNumber, so you can use them interchangeably (including operators and methods).

Definition at line 2 of file CPNumber.h.

Method Documentation

+ (id) alloc
implementation

Allocates a new instance of the receiving class

Reimplemented from CPObject.

Reimplemented in CPDecimalNumber.

Definition at line 42 of file CPNumber.j.

- (BOOL) boolValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 204 of file CPNumber.j.

- (char) charValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 210 of file CPNumber.j.

- (CPComparisonResult) compare: (CPNumber aNumber
implementation

Reimplemented in CPDecimalNumber.

Definition at line 315 of file CPNumber.j.

- (CPDecimal) decimalValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 218 of file CPNumber.j.

- (CPString) description
implementation

Returns a human readable string describing the receiver

Reimplemented from CPObject.

Reimplemented in CPDecimalNumber.

Definition at line 231 of file CPNumber.j.

- (CPString) descriptionWithLocale: (CPDictionary aDictionary
implementation

Reimplemented in CPDecimalNumber.

Definition at line 223 of file CPNumber.j.

- (double) doubleValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 236 of file CPNumber.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Reimplemented in CPDecimalNumber.

Provided by category CPNumber(CPCoding).

Definition at line 342 of file CPNumber.j.

- (float) floatValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 243 of file CPNumber.j.

- (id) initWithBool: (BOOL)  aBoolean
implementation

Reimplemented in CPDecimalNumber.

Definition at line 120 of file CPNumber.j.

- (id) initWithChar: (char)  aChar
implementation

Reimplemented in CPDecimalNumber.

Definition at line 125 of file CPNumber.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Reimplemented in CPDecimalNumber.

Provided by category CPNumber(CPCoding).

Definition at line 337 of file CPNumber.j.

- (id) initWithDouble: (double)  aDouble
implementation

Reimplemented in CPDecimalNumber.

Definition at line 133 of file CPNumber.j.

- (id) initWithFloat: (float)  aFloat
implementation

Reimplemented in CPDecimalNumber.

Definition at line 138 of file CPNumber.j.

- (id) initWithInt: (int)  anInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 143 of file CPNumber.j.

- (id) initWithLong: (long)  aLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 148 of file CPNumber.j.

- (id) initWithLongLong: (long long)  aLongLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 153 of file CPNumber.j.

- (id) initWithShort: (short)  aShort
implementation

Reimplemented in CPDecimalNumber.

Definition at line 158 of file CPNumber.j.

- (id) initWithUnsignedChar: (unsigned char)  aChar
implementation

Reimplemented in CPDecimalNumber.

Definition at line 163 of file CPNumber.j.

- (id) initWithUnsignedInt: (unsigned)  anUnsignedInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 171 of file CPNumber.j.

- (id) initWithUnsignedLong: (unsigned long)  anUnsignedLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 176 of file CPNumber.j.

- (id) initWithUnsignedShort: (unsigned short)  anUnsignedShort
implementation

Reimplemented in CPDecimalNumber.

Definition at line 186 of file CPNumber.j.

- (int) intValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 250 of file CPNumber.j.

- (BOOL) isEqualToNumber: (CPNumber aNumber
implementation

Reimplemented in CPDecimalNumber.

Definition at line 328 of file CPNumber.j.

- (long long) longLongValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 257 of file CPNumber.j.

- (long) longValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 264 of file CPNumber.j.

+ (id) numberWithBool: (BOOL)  aBoolean
implementation

Reimplemented in CPDecimalNumber.

Definition at line 49 of file CPNumber.j.

+ (id) numberWithChar: (char)  aChar
implementation

Reimplemented in CPDecimalNumber.

Definition at line 54 of file CPNumber.j.

+ (id) numberWithDouble: (double)  aDouble
implementation

Reimplemented in CPDecimalNumber.

Definition at line 62 of file CPNumber.j.

+ (id) numberWithFloat: (float)  aFloat
implementation

Reimplemented in CPDecimalNumber.

Definition at line 67 of file CPNumber.j.

+ (id) numberWithInt: (int)  anInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 72 of file CPNumber.j.

+ (id) numberWithLong: (long)  aLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 77 of file CPNumber.j.

+ (id) numberWithLongLong: (long long)  aLongLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 82 of file CPNumber.j.

+ (id) numberWithShort: (short)  aShort
implementation

Reimplemented in CPDecimalNumber.

Definition at line 87 of file CPNumber.j.

+ (id) numberWithUnsignedChar: (unsigned char)  aChar
implementation

Reimplemented in CPDecimalNumber.

Definition at line 92 of file CPNumber.j.

+ (id) numberWithUnsignedInt: (unsigned)  anUnsignedInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 100 of file CPNumber.j.

+ (id) numberWithUnsignedLong: (unsigned long)  anUnsignedLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 105 of file CPNumber.j.

+ (id) numberWithUnsignedShort: (unsigned short)  anUnsignedShort
implementation

Reimplemented in CPDecimalNumber.

Definition at line 115 of file CPNumber.j.

- (short) shortValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 271 of file CPNumber.j.

- (CPString) stringValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 278 of file CPNumber.j.

- (CPString) UID
implementation

Reimplemented from CPObject.

Definition at line 191 of file CPNumber.j.

- (unsigned char) unsignedCharValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 283 of file CPNumber.j.

- (unsigned int) unsignedIntValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 288 of file CPNumber.j.

- (unsigned long) unsignedLongValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 301 of file CPNumber.j.

- (unsigned short) unsignedShortValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 308 of file CPNumber.j.


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