API  0.9.6
 All Classes Files Functions Variables Macros Modules Pages
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 512 of file CPArray+KVO.j.

Method Documentation

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

Raises an exception.

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

Extends class CPArray.

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

- (void) addObserver: (id)  anObserver
toObjectsAtIndexes: (CPIndexSet indexes
forKeyPath: (CPString aKeyPath
options: (unsigned)  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.

Extends class CPArray.

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

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

Raises an exception.

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

Extends class CPArray.

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

- (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.

Extends class CPArray.

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


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