Protocol: NSCacheDelegate

Overview

The delegate of an NSCache object implements this protocol to perform specialized actions when an object is about to be evicted or removed from the cache.Called when an object is about to be evicted or removed from the cache.

Instance Method Summary (collapse)

Instance Method Details

- (Object) cache(cache, willEvictObject:obj)

Called when an object is about to be evicted or removed from the cache. It is not possible to modify cache from within the implementation of this delegate method.

Parameters:

  • cache (NSCache)

    The cache with which the object of interest is associated.

  • obj (Object)

    The object of interest in the cache.

Returns: