---
title: NSCollectorDisabledOption
framework: foundation
role: symbol
role_heading: Global Variable
path: foundation/nscollectordisabledoption
---

# NSCollectorDisabledOption

Specifies that the block is retained, and therefore ineligible for collection. Specifying this option is equivalent to invoking disableCollectorForPointer: with the returned block as the argument.

## Declaration

```swift
var NSCollectorDisabledOption: Int { get }
```

## See Also

### Constants

- [NSScannedOption](foundation/nsscannedoption.md)
