Instance Method

removeObserver:fromObjectsAtIndexes:forKeyPath:

Removes anObserver from all key value observer notifications associated with the specified keyPath relative to the array’s objects at indexes.

Declaration

- (void)removeObserver:(NSObject *)observer fromObjectsAtIndexes:(NSIndexSet *)indexes forKeyPath:(NSString *)keyPath;

Parameters

anObserver

The observer.

indexes

The index set.

keyPath

The key path, relative to the array, to be observed.

Discussion

This is not merely a convenience method; invoking this method is potentially much faster than repeatedly invoking removeObserver:forKeyPath:.

See Also

Key-Value Observing

- removeObserver:forKeyPath:

Raises an exception.

- addObserver:toObjectsAtIndexes:forKeyPath:options:context:

Registers an observer to receive key value observer notifications for the specified key-path relative to the objects at the indexes.