Instance Method

initWithInt:

Returns an NSNumber object initialized to contain a given value, treated as a signed int.

Declaration

- (NSNumber *)initWithInt:(int)value;

Parameters

value

The value for the new number.

Return Value

An NSNumber object containing value, treating it as a signed int.

See Also

Initializing an NSNumber Object

- initWithBool:

Returns an NSNumber object initialized to contain a given value, treated as a BOOL.

- initWithChar:

Returns an NSNumber object initialized to contain a given value, treated as a signed char.

- initWithDouble:

Returns an NSNumber object initialized to contain value, treated as a double.

- initWithFloat:

Returns an NSNumber object initialized to contain a given value, treated as a float.

- initWithInteger:

Returns an NSNumber object initialized to contain a given value, treated as an NSInteger.

- initWithLong:

Returns an NSNumber object initialized to contain a given value, treated as a signed long.

- initWithLongLong:

Returns an NSNumber object initialized to contain value, treated as a signed long long.

- initWithShort:

Returns an NSNumber object initialized to contain a given value, treated as a signed short.

- initWithUnsignedChar:

Returns an NSNumber object initialized to contain a given value, treated as an unsigned char.

- initWithUnsignedInt:

Returns an NSNumber object initialized to contain a given value, treated as an unsigned int.

- initWithUnsignedInteger:

Returns an NSNumber object initialized to contain a given value, treated as an NSUInteger.

- initWithUnsignedLong:

Returns an NSNumber object initialized to contain a given value, treated as an unsigned long.

- initWithUnsignedLongLong:

Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long.

- initWithUnsignedShort:

Returns an NSNumber object initialized to contain a given value, treated as an unsigned short.