NSCacheDelegate Protocol Reference
| Adopted by | |
| Conforms to | |
| Framework | /System/Library/Frameworks/Foundation.framework |
| Availability | Available in OS X v10.6 and later. |
| Declared in | NSCache.h |
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.
Instance Methods
cache:willEvictObject:
Called when an object is about to be evicted or removed from the cache.
- (void)cache:(NSCache *)cache willEvictObject:(id)obj
Parameters
- cache
The cache with which the object of interest is associated.
- obj
The object of interest in the cache.
Discussion
It is not possible to modify cache from within the implementation of this delegate method.
Availability
- Available in OS X v10.6 and later.
Declared In
NSCache.h© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-04-13)