MonobjcMonobjc Documented Class Library
ObserveValueForKeyPathOfObjectChangeContext Method (keyPath, object, change, context)
NamespacesMonobjc.FoundationNSObjectObserveValueForKeyPathOfObjectChangeContext(NSString, Id, NSDictionary, IntPtr)

This message is sent to the receiver when the value at the specified key path relative to the given object has changed.

Original signature is '- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void ObserveValueForKeyPathOfObjectChangeContext(
	NSString keyPath,
	Id object,
	NSDictionary change,
	IntPtr context
)
Public Overridable Sub ObserveValueForKeyPathOfObjectChangeContext ( _
	keyPath As NSString, _
	object As Id, _
	change As NSDictionary, _
	context As IntPtr _
)
public:
virtual void ObserveValueForKeyPathOfObjectChangeContext(
	NSString^ keyPath, 
	Id^ object, 
	NSDictionary^ change, 
	IntPtr context
)
Parameters
keyPath (NSString)
The key path, relative to object, to the value that has changed.
object (Id)
The source object of the key path keyPath.
change (NSDictionary)
A dictionary that describes the changes that have been made to the value of the property at the key path keyPath relative to object. Entries are described in “Keys used by the change dictionary.”
context (IntPtr)
The value that was provided when the receiver was registered to receive key-value observation notifications.
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)