didChangeValue(forKey:withSetMutation:using:)
Provides an opportunity to respond when a change was made to a specified to-many relationship.
Declaration
func didChangeValue(forKey inKey: String, withSetMutation inMutationKind: NSKeyValueSetMutationKind, using inObjects: Set<AnyHashable>)Parameters
- inKey:
The name of a property that is a to-many relationship.
- inMutationKind:
The type of change that was made.
- inObjects:
The objects that were involved in the change (see Nskeyvaluesetmutationkind).
Discussion
For more details, see Key-Value Observing Programming Guide.
You must not override this method.