Instance Method

discardContentIfPossible

Called to discard the contents of the receiver if the value of the accessed counter is 0.

Required.

Declaration

- (void)discardContentIfPossible;

Discussion

This method should only discard the contents of the object if the value of the accessed counter is 0. Otherwise, it should do nothing.

See Also

Discarding Content

- isContentDiscarded

Returns a Boolean value indicating whether the content has been discarded.

Required.