API  0.9.6
 All Classes Files Functions Variables Macros Modules 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:
 
(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:
 
(Class) + class
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isSubclassOfClass:
 
(CPSet+ keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Additional Inherited Members

- Instance Variables inherited from CPObject
Class isa
 

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 43 of file CPNumber.j.

- (BOOL) boolValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 205 of file CPNumber.j.

- (char) charValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 211 of file CPNumber.j.

- (CPComparisonResult) compare: (CPNumber aNumber
implementation

Reimplemented in CPDecimalNumber.

Definition at line 316 of file CPNumber.j.

- (CPDecimal) decimalValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 219 of file CPNumber.j.

- (CPString) description
implementation

Returns a human readable string describing the receiver

Reimplemented from CPObject.

Reimplemented in CPDecimalNumber.

Definition at line 232 of file CPNumber.j.

- (CPString) descriptionWithLocale: (CPDictionary aDictionary
implementation

Reimplemented in CPDecimalNumber.

Definition at line 224 of file CPNumber.j.

- (double) doubleValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 237 of file CPNumber.j.

- (void) encodeWithCoder: (CPCoder aCoder
implementation

Reimplemented in CPDecimalNumber.

Provided by category CPNumber(CPCoding).

Definition at line 340 of file CPNumber.j.

- (float) floatValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 244 of file CPNumber.j.

- (id) initWithBool: (BOOL)  aBoolean
implementation

Reimplemented in CPDecimalNumber.

Definition at line 121 of file CPNumber.j.

- (id) initWithChar: (char)  aChar
implementation

Reimplemented in CPDecimalNumber.

Definition at line 126 of file CPNumber.j.

- (id) initWithCoder: (CPCoder aCoder
implementation

Reimplemented in CPDecimalNumber.

Provided by category CPNumber(CPCoding).

Definition at line 335 of file CPNumber.j.

- (id) initWithDouble: (double)  aDouble
implementation

Reimplemented in CPDecimalNumber.

Definition at line 134 of file CPNumber.j.

- (id) initWithFloat: (float)  aFloat
implementation

Reimplemented in CPDecimalNumber.

Definition at line 139 of file CPNumber.j.

- (id) initWithInt: (int)  anInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 144 of file CPNumber.j.

- (id) initWithLong: (long)  aLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 149 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 154 of file CPNumber.j.

- (id) initWithShort: (short)  aShort
implementation

Reimplemented in CPDecimalNumber.

Definition at line 159 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 164 of file CPNumber.j.

- (id) initWithUnsignedInt: (unsigned)  anUnsignedInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 172 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 177 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 187 of file CPNumber.j.

- (int) intValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 251 of file CPNumber.j.

- (BOOL) isEqualToNumber: (CPNumber aNumber
implementation

Reimplemented in CPDecimalNumber.

Definition at line 326 of file CPNumber.j.

- (long long) longLongValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 258 of file CPNumber.j.

- (long) longValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 265 of file CPNumber.j.

+ (id) numberWithBool: (BOOL)  aBoolean
implementation

Reimplemented in CPDecimalNumber.

Definition at line 50 of file CPNumber.j.

+ (id) numberWithChar: (char)  aChar
implementation

Reimplemented in CPDecimalNumber.

Definition at line 55 of file CPNumber.j.

+ (id) numberWithDouble: (double)  aDouble
implementation

Reimplemented in CPDecimalNumber.

Definition at line 63 of file CPNumber.j.

+ (id) numberWithFloat: (float)  aFloat
implementation

Reimplemented in CPDecimalNumber.

Definition at line 68 of file CPNumber.j.

+ (id) numberWithInt: (int)  anInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 73 of file CPNumber.j.

+ (id) numberWithLong: (long)  aLong
implementation

Reimplemented in CPDecimalNumber.

Definition at line 78 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 83 of file CPNumber.j.

+ (id) numberWithShort: (short)  aShort
implementation

Reimplemented in CPDecimalNumber.

Definition at line 88 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 93 of file CPNumber.j.

+ (id) numberWithUnsignedInt: (unsigned)  anUnsignedInt
implementation

Reimplemented in CPDecimalNumber.

Definition at line 101 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 106 of file CPNumber.j.

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

Reimplemented in CPDecimalNumber.

Definition at line 116 of file CPNumber.j.

- (short) shortValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 272 of file CPNumber.j.

- (CPString) stringValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 279 of file CPNumber.j.

- (CPString) UID
implementation

Reimplemented from CPObject.

Definition at line 192 of file CPNumber.j.

- (unsigned char) unsignedCharValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 284 of file CPNumber.j.

- (unsigned int) unsignedIntValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 289 of file CPNumber.j.

- (unsigned long) unsignedLongValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 302 of file CPNumber.j.

- (unsigned short) unsignedShortValue
implementation

Reimplemented in CPDecimalNumber.

Definition at line 309 of file CPNumber.j.


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