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

# NSUInteger

Describes an unsigned integer.

```
typedef unsigned long NSUInteger;
```

## Discussion

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

## Topics

### Constants

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

The maximum value for an `NSUInteger`.



---

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)