Inherits from NSObject
Conforms to NSCoding
NSCopying
Declared in OGWMutableValue.h

Overview

Similar to NSValue/NSNumber, but allows numbers to be modified (hence: mutable). It does not inherit NSValue or NSNumber, the implementation is lightweight and encapsulates various value-specific classes, each containing only a single ivar of the given data type.

This is what makes OGWMutableValue values mutable, they’re regular properties of objects encapsulating integral and struct data types.

Once a concrete subclass of OGWMutableValue has been created using one of the initializers, the type of that number is set and can not be changed. For example, if you assign a BOOL value to a float number, the BOOL value will be cast to float. Likewise if you access the charValue property of a number whose type is float, the returned value will be cast from float to char before it is returned.

Properties

boolValue

Get or set the number’s value as/from type BOOL.

@property (atomic) BOOL boolValue

Declared In

OGWMutableValue.h

charValue

get or set the number’s value as/from type char

@property (atomic) char charValue

Declared In

OGWMutableValue.h

doubleValue

get or set the number’s value as/from type double

@property (atomic) double doubleValue

Declared In

OGWMutableValue.h

floatValue

get or set the number’s value as/from type float

@property (atomic) float floatValue

Declared In

OGWMutableValue.h

intValue

get or set the number’s value as/from type int

@property (atomic) int intValue

Declared In

OGWMutableValue.h

integerValue

get or set the number’s value as/from type GWInteger

@property (atomic) GWInteger integerValue

Declared In

OGWMutableValue.h

longLongValue

get or set the number’s value as/from type long long

@property (atomic) long long longLongValue

Declared In

OGWMutableValue.h

longValue

get or set the number’s value as/from type long

@property (atomic) long longValue

Declared In

OGWMutableValue.h

pointValue

get or set the value as GWPoint

@property (atomic) GWPoint pointValue

Declared In

OGWMutableValue.h

rectValue

get or set the value as GWRect

@property (atomic) GWRect rectValue

Declared In

OGWMutableValue.h

shortValue

get or set the number’s value as/from type short

@property (atomic) short shortValue

Declared In

OGWMutableValue.h

sizeValue

get or set the value as GWSize

@property (atomic) GWSize sizeValue

Declared In

OGWMutableValue.h

unsignedCharValue

get or set the number’s value as/from type unsigned char

@property (atomic) unsigned char unsignedCharValue

Declared In

OGWMutableValue.h

unsignedIntValue

get or set the number’s value as/from type unsigned int

@property (atomic) unsigned int unsignedIntValue

Declared In

OGWMutableValue.h

unsignedIntegerValue

get or set the number’s value as/from type GWUInteger

@property (atomic) GWUInteger unsignedIntegerValue

Declared In

OGWMutableValue.h

unsignedLongLongValue

get or set the number’s value as/from type unsigned long long

@property (atomic) unsigned long long unsignedLongLongValue

Declared In

OGWMutableValue.h

unsignedLongValue

get or set the number’s value as/from type unsigned long

@property (atomic) unsigned long unsignedLongValue

Declared In

OGWMutableValue.h

unsignedShortValue

get or set the number’s value as/from type unsigned short

@property (atomic) unsigned short unsignedShortValue

Declared In

OGWMutableValue.h

vectorValue

get or set the value as GWVector

@property (atomic) GWVector vectorValue

Declared In

OGWMutableValue.h

Class Methods

valueWithBool:

create a mutable number of type BOOL

+ (id)valueWithBool:(BOOL)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithChar:

create a mutable number of type char

+ (id)valueWithChar:(char)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithDouble:

create a mutable number of type double

+ (id)valueWithDouble:(double)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithFloat:

create a mutable number of type float

+ (id)valueWithFloat:(float)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithInt:

create a mutable number of type int

+ (id)valueWithInt:(int)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithInteger:

create a mutable number of type GWInteger (32-Bit on iOS, 64-Bit on OS X)

+ (id)valueWithInteger:(GWInteger)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithLong:

create a mutable number of type long

+ (id)valueWithLong:(long)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithLongLong:

create a mutable number of type long long (64 bit integer)

+ (id)valueWithLongLong:(long long)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithPoint:

create a mutable number of type GWPoint

+ (id)valueWithPoint:(GWPoint)point

Parameters

point

A point.

Declared In

OGWMutableValue.h

valueWithRect:

create a mutable number of type GWRect

+ (id)valueWithRect:(GWRect)rect

Parameters

rect

A rect.

Declared In

OGWMutableValue.h

valueWithShort:

create a mutable number of type short

+ (id)valueWithShort:(short)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithSize:

create a mutable number of type GWSize

+ (id)valueWithSize:(GWSize)size

Parameters

size

A size.

Declared In

OGWMutableValue.h

valueWithUnsignedChar:

create a mutable number of type unsigned char

+ (id)valueWithUnsignedChar:(unsigned char)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithUnsignedInt:

create a mutable number of type unsigned int

+ (id)valueWithUnsignedInt:(unsigned int)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithUnsignedInteger:

create a mutable number of type GWUInteger (32-Bit on iOS, 64-Bit on OS X)

+ (id)valueWithUnsignedInteger:(GWUInteger)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithUnsignedLong:

create a mutable number of type unsigned long

+ (id)valueWithUnsignedLong:(unsigned long)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithUnsignedLongLong:

create a mutable number of type unsigned long long (64 bit integer)

+ (id)valueWithUnsignedLongLong:(unsigned long long)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithUnsignedShort:

create a mutable number of type unsigned short

+ (id)valueWithUnsignedShort:(unsigned short)number

Parameters

number

A number.

Declared In

OGWMutableValue.h

valueWithVector:

create a mutable number of type GWVector

+ (id)valueWithVector:(GWVector)vector

Parameters

vector

A vector.

Declared In

OGWMutableValue.h