Type Alias

NSInteger

Describes an integer.

Declaration

iOS, macOS, Mac Catalyst, tvOS
typedef long NSInteger;
watchOS
typedef int NSInteger;

Discussion

When building 32-bit applications, NSInteger is a 32-bit integer. A 64-bit application treats NSInteger as a 64-bit integer.

Topics

Constants

NSIntegerMax

The maximum value for an NSInteger.

NSIntegerMin

The minimum value for an NSInteger.

See Also

Numbers

NSUInteger

Describes an unsigned integer.

NSDecimal

A structure representing a base-10 number.

NSDecimalNumber

An object for representing and performing arithmetic on base-10 numbers.

NSNumber

An object wrapper for primitive scalar numeric values.

NSNumberFormatter

A formatter that converts between numeric values and their textual representations.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software