MonobjcMonobjc Documented Class Library
SetFloatForKey Method (value, defaultName)
NamespacesMonobjc.FoundationNSUserDefaultsSetFloatForKey(Single, NSString)

Sets the value of the specified default key to the specified floating-point value.

Original signature is '- (void)setFloat:(float)value forKey:(NSString *)defaultName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetFloatForKey(
	float value,
	NSString defaultName
)
Public Overridable Sub SetFloatForKey ( _
	value As Single, _
	defaultName As NSString _
)
public:
virtual void SetFloatForKey(
	float value, 
	NSString^ defaultName
)
Parameters
value (Single)
The floating-point value 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)