Instance Method

didChangeValueForKey:

Provides an opportunity to respond when a value of a given property has changed.

Declaration

- (void)didChangeValueForKey:(NSString *)key;

Parameters

key

The name of the property that changed.

Discussion

For more details, see Key-Value Observing Programming Guide.

You must not override this method.

See Also

Supporting Key-Value Observing

+ automaticallyNotifiesObserversForKey:

Returns a Boolean value that indicates whether the receiver provides automatic support for key-value observing change notifications for the given key.

- didAccessValueForKey:

Provides support for key-value observing access notification.

- observationInfo

Returns the observation info of the managed object.

- setObservationInfo:

Sets the observation info of the managed object.

- willAccessValueForKey:

Provides support for key-value observing access notification.

- didChangeValueForKey:withSetMutation:usingObjects:

Provides an opportunity to respond when a change was made to a specified to-many relationship.

- willChangeValueForKey:

Provides an opportunity to respond when a value of a given property is about to change.

- willChangeValueForKey:withSetMutation:usingObjects:

Provides an opportunity to respond when a change is about to be made to a specified to-many relationship.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software