Contents

insertedIndexes

The indexes where new objects have been inserted in the fetch result.

Declaration

var insertedIndexes: IndexSet? { get }

Discussion

Use this index set can to insert elements in a collection view or similar user interface that displays the contents of the fetch result. These indexes are relative to the original fetch result (the fetchResultBeforeChanges property) after you’ve applied the changes described by the removedIndexes property; when updating your app’s interface, apply insertions after removals and before changes and moves.

If the hasIncrementalChanges property’s value is false, this property’s value is nil.

See Also

Getting Change Information