MonobjcMonobjc Documented Class Library
AddObserverToObjectsAtIndexesForKeyPathOptionsContext Method (anObserver, indexes, keyPath, options, context)
NamespacesMonobjc.FoundationNSArrayAddObserverToObjectsAtIndexesForKeyPathOptionsContext(NSObject, NSIndexSet, NSString, NSKeyValueObservingOptions, IntPtr)

Registers anObserver to receive key value observer notifications for the specified keypath relative to the objects at indexes.

Original signature is '- (void)addObserver:(NSObject *)anObserver toObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(void *)context'

Available in Mac OS X v10.3 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void AddObserverToObjectsAtIndexesForKeyPathOptionsContext(
	NSObject anObserver,
	NSIndexSet indexes,
	NSString keyPath,
	NSKeyValueObservingOptions options,
	IntPtr context
)
Public Overridable Sub AddObserverToObjectsAtIndexesForKeyPathOptionsContext ( _
	anObserver As NSObject, _
	indexes As NSIndexSet, _
	keyPath As NSString, _
	options As NSKeyValueObservingOptions, _
	context As IntPtr _
)
public:
virtual void AddObserverToObjectsAtIndexesForKeyPathOptionsContext(
	NSObject^ anObserver, 
	NSIndexSet^ indexes, 
	NSString^ keyPath, 
	NSKeyValueObservingOptions options, 
	IntPtr context
)
Parameters
anObserver (NSObject)
The observer.
indexes (NSIndexSet)
The index set.
keyPath (NSString)
The key path, relative to the array, to be observed.
options (NSKeyValueObservingOptions)
The options to be included in the notification.
context (IntPtr)
The context passed to the 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)