MonobjcMonobjc Documented Class Library
RemoveObserverForKeyPath Method (anObserver, keyPath)
NamespacesMonobjc.FoundationNSObjectRemoveObserverForKeyPath(NSObject, NSString)

Stops a given object from receiving change notifications for the property specified by a given key-path relative to the receiver.

Original signature is '- (void)removeObserver:(NSObject *)anObserver forKeyPath:(NSString *)keyPath'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void RemoveObserverForKeyPath(
	NSObject anObserver,
	NSString keyPath
Public Overridable Sub RemoveObserverForKeyPath ( _
	anObserver As NSObject, _
	keyPath As NSString _
virtual void RemoveObserverForKeyPath(
	NSObject^ anObserver, 
	NSString^ keyPath
anObserver (NSObject)
The object to remove as an observer.
keyPath (NSString)
A key-path, relative to the receiver, for which anObserver is registered to receive KVO change 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)