Instance Method

disable

Temporarily disables collections.

Declaration

- (void)disable;

Discussion

Invocations of this method can be nested. To reenable collection, you must send the collector an enable message once for each invocation of this method.

See Also

Collection State

enable

Enables collection after collection has been disabled.

Deprecated
isEnabled

Returns a Boolean value that indicates whether garbage collection is currently enabled for the current process.

Deprecated
isCollecting

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

Deprecated