<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/objective-c-garbage-collection",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Objective-C Garbage Collection"
}
-->

# Objective-C Garbage Collection

Interface with the legacy garbage collection system.

## Topics

### Legacy

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

A convenient interface to the garbage collection system.

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

Allocates collectable memory.

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

Reallocates collectable memory.

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

Makes a newly allocated Core Foundation object eligible for collection.

[Memory Allocation Options](/documentation/Foundation/1539826-memory-allocation-options)

Constants used to control behavior when allocating or reallocating collectible memory.



---

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)