---
title: enable
framework: foundation
role: symbol
role_heading: Instance Method
path: foundation/nsgarbagecollector/enable
---

# enable

Enables collection after collection has been disabled.

## Declaration

```occ
- (void) enable;
```

## Discussion

Discussion This method balances a single invocation of disable. To reenable collection, this method must be invoked as many times as was disable.

## See Also

### Collection State

- [disable](foundation/nsgarbagecollector/disable.md)
- [isEnabled](foundation/nsgarbagecollector/isenabled.md)
- [isCollecting](foundation/nsgarbagecollector/iscollecting.md)
