Instance Method

didChangeValue(forKey:)

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

Declaration

func didChangeValue(forKey key: String)

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

func didAccessValue(forKey: String?)

Provides support for key-value observing access notification.

func observationInfo() -> UnsafeMutableRawPointer?

Returns the observation info of the managed object.

func setObservationInfo(UnsafeMutableRawPointer?)

Sets the observation info of the managed object.

func willAccessValue(forKey: String?)

Provides support for key-value observing access notification.

func didChangeValue(forKey: String, withSetMutation: NSKeyValueSetMutationKind, using: Set<AnyHashable>)

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

func willChangeValue(forKey: String)

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

func willChangeValue(forKey: String, withSetMutation: NSKeyValueSetMutationKind, using: Set<AnyHashable>)

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