MonobjcMonobjc Documented Class Library
SetObjectForKey Method (obj, key)
NamespacesMonobjc.FoundationNSCacheSetObjectForKey(Id, Id)

Sets the value of the specified key in the cache.

Original signature is '- (void)setObject:(id)obj forKey:(id)key'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetObjectForKey(
	Id obj,
	Id key
)
Public Overridable Sub SetObjectForKey ( _
	obj As Id, _
	key As Id _
)
public:
virtual void SetObjectForKey(
	Id^ obj, 
	Id^ key
)
Parameters
obj (Id)
The object to be stored in the cache.
key (Id)
The key with which to associate the value.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)