MBNumericPrimitiveAccessors Protocol Reference

Declared in TypeCoercionSupport.h

Overview

This is the base protocol that will be adopted by our NSString and NSNull extensions to ensure proper KVC type coercion on 64-bit processors.

– charValue required method

Returns the char value equivalent of the receiver.

- (char)charValue

Return Value

The value of the receiver as a char.

Declared In

TypeCoercionSupport.h

– unsignedCharValue required method

Returns the unsigned char value equivalent of the receiver.

- (unsigned char)unsignedCharValue

Return Value

The value of the receiver as an unsigned char.

Declared In

TypeCoercionSupport.h

– shortValue required method

Returns the short value equivalent of the receiver.

- (short)shortValue

Return Value

The value of the receiver as a short.

Declared In

TypeCoercionSupport.h

– unsignedShortValue required method

Returns the unsigned short value equivalent of the receiver.

- (unsigned short)unsignedShortValue

Return Value

The value of the receiver as an unsigned short.

Declared In

TypeCoercionSupport.h

– intValue required method

Returns the int value equivalent of the receiver.

- (int)intValue

Return Value

The value of the receiver as a int.

Declared In

TypeCoercionSupport.h

– unsignedIntValue required method

Returns the unsigned int value equivalent of the receiver.

- (unsigned int)unsignedIntValue

Return Value

The value of the receiver as an unsigned int.

Declared In

TypeCoercionSupport.h

– longValue required method

Returns the long value equivalent of the receiver.

- (long)longValue

Return Value

The value of the receiver as a long.

Declared In

TypeCoercionSupport.h

– unsignedLongValue required method

Returns the unsigned long value equivalent of the receiver.

- (unsigned long)unsignedLongValue

Return Value

The value of the receiver as an unsigned long.

Declared In

TypeCoercionSupport.h

– longLongValue required method

Returns the long long value equivalent of the receiver.

- (long long)longLongValue

Return Value

The value of the receiver as a long long.

Declared In

TypeCoercionSupport.h

– unsignedLongLongValue required method

Returns the unsigned long long value equivalent of the receiver.

- (unsigned long long)unsignedLongLongValue

Return Value

The value of the receiver as an unsigned long long.

Declared In

TypeCoercionSupport.h

– floatValue required method

Returns the float value equivalent of the receiver.

- (float)floatValue

Return Value

The value of the receiver as a float.

Declared In

TypeCoercionSupport.h

– doubleValue required method

Returns the double value equivalent of the receiver.

- (double)doubleValue

Return Value

The value of the receiver as a double.

Declared In

TypeCoercionSupport.h

– boolValue required method

Returns the BOOL value equivalent of the receiver.

- (BOOL)boolValue

Return Value

The value of the receiver as a BOOL.

Declared In

TypeCoercionSupport.h

– integerValue required method

Returns the NSInteger value equivalent of the receiver.

- (NSInteger)integerValue

Return Value

The value of the receiver as an NSInteger.

Declared In

TypeCoercionSupport.h

– unsignedIntegerValue required method

Returns the NSUInteger value equivalent of the receiver.

- (NSUInteger)unsignedIntegerValue

Return Value

The value of the receiver as an NSUInteger.

Declared In

TypeCoercionSupport.h

– stringValue required method

Returns the NSString value equivalent of the receiver.

- (nonnull NSString *)stringValue

Return Value

The value of the receiver as an NSString.

Declared In

TypeCoercionSupport.h