Returns a Boolean value that indicates whether garbage collection is currently enabled for the current process.
- macOS 10.5–10.10Deprecated
YES if garbage collection is enabled for the current process, otherwise
This method returns
NO if garbage collection is on, but has been temporarily suspended (using
To check whether the current process is using garbage collection check the result of
nil, then garbage collection is permanently off. If
default is not
nil, then the current process is using garbage collection—you can then use
is to determine whether or not the collector is actually allowed to run right now.