<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSInteger",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:@T@NSInteger"
  },
  "title" : "NSInteger"
}
-->

# NSInteger

Describes an integer.

```
typealias NSInteger = Int
```

## 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`](/documentation/ObjectiveC/NSIntegerMax)

The maximum value for an `NSInteger`.

[`NSIntegerMin`](/documentation/ObjectiveC/NSIntegerMin)

The minimum value for an `NSInteger`.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)