<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSZone",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@T@NSZone"
  },
  "title" : "NSZone"
}
-->

# NSZone

A type used to identify and manage memory zones.

```
typedef struct _NSZone NSZone;
```

## Topics

### Managing Zones

Zones are ignored on iOS and 64-bit runtime in macOS. You should not use zones in current development.

[`NSCreateZone`](/documentation/Foundation/NSCreateZone)

Creates a new zone.

[`NSRecycleZone`](/documentation/Foundation/NSRecycleZone)

Frees memory in a zone.

[`NSSetZoneName`](/documentation/Foundation/NSSetZoneName)

Sets the name of the specified zone.

[`NSZoneCalloc`](/documentation/Foundation/NSZoneCalloc)

Allocates memory in a zone.

[`NSZoneFree`](/documentation/Foundation/NSZoneFree)

Deallocates a block of memory in the specified zone.

[`NSZoneFromPointer`](/documentation/Foundation/NSZoneFromPointer)

Gets the zone for a given block of memory.

[`NSZoneMalloc`](/documentation/Foundation/NSZoneMalloc)

Allocates memory in a zone.

[`NSZoneName`](/documentation/Foundation/NSZoneName)

Returns the name of the specified zone.

[`NSZoneRealloc`](/documentation/Foundation/NSZoneRealloc)

Allocates memory in a zone.

[`NSDefaultMallocZone`](/documentation/Foundation/NSDefaultMallocZone)

Returns the default zone.



---

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)