MonobjcMonobjc Documented Class Library
IntegerForKey Method (defaultName)
NamespacesMonobjc.FoundationNSUserDefaultsIntegerForKey(NSString)

Returns the integer value associated with the specified key..

Original signature is '- (NSInteger)integerForKey:(NSString *)defaultName'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSInteger IntegerForKey(
	NSString defaultName
)
Public Overridable Function IntegerForKey ( _
	defaultName As NSString _
) As NSInteger
public:
virtual NSInteger IntegerForKey(
	NSString^ defaultName
)
Parameters
defaultName (NSString)
A key in the current user's defaults database.
Return Value
The integer value associated with the specified key. If the specified key does not exist, this method returns 0.
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)