[This is preliminary documentation and is subject to change.]

Adds an observer to a KVO-compliant key path of the receiver.

Namespace:  KNKVC
Assembly:  KNKVC (in KNKVC.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static void addObserverToKeyPathWithOptions(
	this Object o,
	KNKVOObserver observer,
	string keyPath,
	KNKeyValueObservingOptions options,
	Object context
)
Visual Basic (Declaration)
<ExtensionAttribute> _
Public Shared Sub addObserverToKeyPathWithOptions ( _
	o As Object, _
	observer As KNKVOObserver, _
	keyPath As String, _
	options As KNKeyValueObservingOptions, _
	context As Object _
)
Visual C++
[ExtensionAttribute]
public:
static void addObserverToKeyPathWithOptions(
	Object^ o, 
	KNKVOObserver^ observer, 
	String^ keyPath, 
	KNKeyValueObservingOptions options, 
	Object^ context
)

Parameters

o
Type: System..::.Object
The object to be observed.
observer
Type: KNKVC..::.KNKVOObserver
The object to receive the change notifications.
keyPath
Type: System..::.String
The key path to observe.
options
Type: KNKVC..::.KNKeyValueObservingOptions
A bitwise-OR of the desired options. See the KNKeyValueObservingOptions enum for details.
context
Type: System..::.Object
A unique context to identify this observation.

See Also