MonobjcMonobjc Documented Class Library
SetValueForKeyPath Method (value, keyPath)
NamespacesMonobjc.FoundationNSObjectSetValueForKeyPath(Id, NSString)

Sets the value for the property identified by a given key path to a given value.

Original signature is '- (void)setValue:(id)value forKeyPath:(NSString *)keyPath'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void SetValueForKeyPath(
	Id value,
	NSString keyPath
Public Overridable Sub SetValueForKeyPath ( _
	value As Id, _
	keyPath As NSString _
virtual void SetValueForKeyPath(
	Id^ value, 
	NSString^ keyPath
value (Id)
The value for the property identified by keyPath.
keyPath (NSString)
A key path of the form (with one or more relationships): for example “” or “department.manager.lastName.”
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)