MonobjcMonobjc Documented Class Library
CoerceValueForKey Method (value, key)
NamespacesMonobjc.FoundationNSObjectCoerceValueForKey(Id, NSString)

Uses type info from the class description and NSScriptCoercionHandler to attempt to convert value for key to the proper type, if necessary.

Original signature is '- (id)coerceValue:(id)value forKey:(NSString *)key'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id CoerceValueForKey(
	Id value,
	NSString key
Public Overridable Function CoerceValueForKey ( _
	value As Id, _
	key As NSString _
) As Id
virtual Id^ CoerceValueForKey(
	Id^ value, 
	NSString^ key
value (Id)
key (NSString)
Return Value

[Missing <returns> documentation for "M:Monobjc.Foundation.NSObject.CoerceValueForKey(Monobjc.Id,Monobjc.Foundation.NSString)"]

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)