---
title: NSCreateZone
framework: foundation
role: symbol
role_heading: Function
path: foundation/nscreatezone
---

# NSCreateZone

Creates a new zone.

## Declaration

```occ
extern NSZone *NSCreateZone(NSUInteger startSize, NSUInteger granularity, BOOL canFree);
```

## Return Value

Return Value A pointer to a new zone of startSize bytes, which will grow and shrink by granularity bytes. If canFree is 0, the allocator will never free memory, and malloc will be fast. Returns NULL if a new zone could not be created.

## See Also

### Managing Zones

- [NSRecycleZone](foundation/nsrecyclezone.md)
- [NSSetZoneName](foundation/nssetzonename.md)
- [NSZoneCalloc](foundation/nszonecalloc.md)
- [NSZoneFree](foundation/nszonefree.md)
- [NSZoneFromPointer](foundation/nszonefrompointer.md)
- [NSZoneMalloc](foundation/nszonemalloc.md)
- [NSZoneName](foundation/nszonename.md)
- [NSZoneRealloc](foundation/nszonerealloc.md)
- [NSDefaultMallocZone](foundation/nsdefaultmalloczone.md)
