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

# isCollecting

Returns a Boolean value that indicates whether a collection is currently in progress.

## Declaration

```occ
- (BOOL) isCollecting;
```

## Return Value

Return Value true if a collection is currently in progress, otherwise false.

## See Also

### Collection State

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