MonobjcMonobjc Documented Class Library
SetObjectForKey Method (value, defaultName)
NamespacesMonobjc.FoundationNSUserDefaultsSetObjectForKey(Id, NSString)

Sets the value of the specified default key in the standard application domain.

Original signature is '- (void)setObject:(id)value forKey:(NSString *)defaultName'

Available in Mac OS X v10.0 and later.

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

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