Instance Method

didChangeValueForKey:withSetMutation:usingObjects:

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

Declaration

- (void)didChangeValueForKey:(NSString *)key withSetMutation:(NSKeyValueSetMutationKind)mutationKind usingObjects:(NSSet *)objects;

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 willChangeValueForKey:withSetMutation:usingObjects:.

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

- willChangeValueForKey:

Informs the observed object that the value of a given property is about to change.

- didChangeValueForKey:

Informs the observed object that the value of a given property has changed.

- willChange:valuesAtIndexes:forKey:

Informs the observed object that the specified change is about to be executed at given indexes for a specified ordered to-many relationship.

- didChange:valuesAtIndexes:forKey:

Informs the observed object that the specified change has occurred on the indexes for a specified ordered to-many relationship.

- willChangeValueForKey:withSetMutation:usingObjects:

Informs the observed object that the specified change is about to be made to a specified unordered to-many relationship.