automaticallyNotifiesObserversForKey:

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

Declaration

+ (BOOL)automaticallyNotifiesObserversForKey:(NSString *)key

Parameters

key

The name of one of the receiver's properties.

Return Value

YES if the receiver provides automatic support for key-value observing change notifications for key, otherwise NO.

Overview

The default implementation for NSManagedObject returns NO for modeled properties, and YES for unmodeled properties. For more about key-value observation, see Key-Value Observing Programming Guide.

See Also

Supporting Key-Value Observing

- 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:

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

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