API  0.9.10
CPArray(KeyValueObserving) Category Reference

Instance Methods

(void) - addObserver:forKeyPath:options:context:
 
(void) - addObserver:toObjectsAtIndexes:forKeyPath:options:context:
 
(void) - removeObserver:forKeyPath:
 
(void) - removeObserver:fromObjectsAtIndexes:forKeyPath:
 

Detailed Description

Definition at line 532 of file CPArray+KVO.j.

Method Documentation

◆ addObserver:forKeyPath:options:context:()

- (void) addObserver: (id)  anObserver
forKeyPath: (CPString aKeyPath
options: (CPKeyValueObservingOptions)  anOptions
context: (id)  aContext 
implementation

Raises an exception for any key path other than "@count".

CPArray objects are not observable (except for ), so this method raises an exception when invoked on an CPArray object. Instead of observing an array, observe the ordered to-many relationship for which the array is the collection of related objects.

Definition at line 541 of file CPArray+KVO.j.

◆ addObserver:toObjectsAtIndexes:forKeyPath:options:context:()

- (void) addObserver: (id)  anObserver
toObjectsAtIndexes: (CPIndexSet indexes
forKeyPath: (CPString aKeyPath
options: (CPKeyValueObservingOptions)  options
context: (id)  context 
implementation

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

Definition at line 563 of file CPArray+KVO.j.

◆ removeObserver:forKeyPath:()

- (void) removeObserver: (id)  anObserver
forKeyPath: (CPString aKeyPath 
implementation

Raises an exception for any key path other than "@count".

CPArray objects are not observable (except for ), so this method raises an exception when invoked on an CPArray object. Instead of observing an array, observe the ordered to-many relationship for which the array is the collection of related objects.

Definition at line 554 of file CPArray+KVO.j.

◆ removeObserver:fromObjectsAtIndexes:forKeyPath:()

- (void) removeObserver: (id)  anObserver
fromObjectsAtIndexes: (CPIndexSet indexes
forKeyPath: (CPString aKeyPath 
implementation

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

Definition at line 578 of file CPArray+KVO.j.


The documentation for this category was generated from the following file: