Contents

obtainPermanentIDs(for:)

Returns an array containing the object IDs for a given array of newly-inserted objects.

Declaration

func obtainPermanentIDs(for array: [NSManagedObject]) throws -> [NSManagedObjectID]

Parameters

  • array:

    An array of newly-inserted objects.

Return Value

An array containing the object IDs for the objects in array.

Discussion

The returned array must return the object IDs in the same order as the objects appear in array.

Discussion

This method is called before execute(_:with:) with a save request, to assign permanent IDs to newly-inserted objects.

See Also

Manipulating Managed Objects