Definition at line 24 of file CPKeyValueObserving.j.
- (void) addObserver: |
|
(id) |
anObserver |
forKeyPath: |
|
(CPString) |
aPath |
options: |
|
(CPKeyValueObservingOptions) |
options |
context: |
|
(id) |
aContext |
|
|
| |
|
implementation |
+ (BOOL) automaticallyNotifiesObserversForKey: |
|
(CPString) |
aKey |
|
|
implementation |
Whether -willChangeValueForKey/-didChangeValueForKey should automatically be invoked when the setter of the given key is used. The default is YES. If you override this method to return NO for some key, you will need to call -willChangeValueForKey/-didChangeValueForKey manually to be KVO compliant.
The default implementation of this method will check if the receiving class implements + (BOOL)automaticallyNotifiesObserversOf<aKey>
and return the response of that method if it exists.
Definition at line 157 of file CPKeyValueObserving.j.
- (void) didChange: |
|
(CPKeyValueChange) |
aChange |
valuesAtIndexes: |
|
(CPIndexSet) |
indexes |
forKey: |
|
(CPString) |
aKey |
|
|
| |
|
implementation |
- (void) didChangeValueForKey: |
|
(CPString) |
aKey |
|
|
implementation |
- (void) didChangeValueForKey: |
|
(CPString) |
aKey |
withSetMutation: |
|
(CPKeyValueSetMutationKind) |
aMutationKind |
usingObjects: |
|
(CPSet) |
objects |
|
|
| |
|
implementation |
+ (CPSet) keyPathsForValuesAffectingValueForKey: |
|
(CPString) |
aKey |
|
|
implementation |
- (void) removeObserver: |
|
(id) |
anObserver |
forKeyPath: |
|
(CPString) |
aPath |
|
|
| |
|
implementation |
- (void) willChange: |
|
(CPKeyValueChange) |
aChange |
valuesAtIndexes: |
|
(CPIndexSet) |
indexes |
forKey: |
|
(CPString) |
aKey |
|
|
| |
|
implementation |
- (void) willChangeValueForKey: |
|
(CPString) |
aKey |
|
|
implementation |
- (void) willChangeValueForKey: |
|
(CPString) |
aKey |
withSetMutation: |
|
(CPKeyValueSetMutationKind) |
aMutationKind |
usingObjects: |
|
(CPSet) |
objects |
|
|
| |
|
implementation |
The documentation for this category was generated from the following file: