Contents

didChangeValue(forKey:withSetMutation:using:)

Informs the observed object that the specified change was made to a specified unordered to-many relationship.

Declaration

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

Parameters

  • key:

    The name of a property that is an unordered to-many relationship

  • mutationKind:

    The type of change that was made.

  • objects:

    The objects that were involved in the change (see Nskeyvaluesetmutationkind).

Discussion

Use this method when implementing key-value observer compliance manually. Calls to this method are always paired with a matching call to willChangeValue(forKey:withSetMutation:using:).

Special Considerations

You rarely need to override this method in subclasses, but if you do, be sure to call super.

See Also

Notifying Observers of Changes