Sets the value of the specified key in the cache, and associates the key-value pair with the specified cost.
Original signature is '- (void)setObject:(id)obj forKey:(id)key cost:(NSUInteger)num'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual void SetObjectForKeyCost( Id obj, Id key, NSUInteger num )
Public Overridable Sub SetObjectForKeyCost ( _ obj As Id, _ key As Id, _ num As NSUInteger _ )
public: virtual void SetObjectForKeyCost( Id^ obj, Id^ key, NSUInteger num )
Parameters
- obj (Id)
- The object to store in the cache.
- key (Id)
- The key with which to associate the value.
- num (NSUInteger)
- The cost with which to associate the key-value pair.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)