Contents

load()

Loads the cache nodes for the receiver.

Declaration

func load() throws

Discussion

You override this method to load the data from the URL specified in init(persistentStoreCoordinator:configurationName:at:options:) and create cache nodes for the represented objects. You must respect the configuration specified for the store, as well as the options.

Any subclass of NSAtomicStore must be able to handle being initialized with a URL pointing to a zero-length file. This serves as an indicator that a new store is to be constructed at the specified location and allows you to securely create reservation files in known locations which can then be passed to Core Data to construct stores. You may choose to create zero-length reservation files during init(persistentStoreCoordinator:configurationName:at:options:) or load(). If you do so, you must remove the reservation file if the store is removed from the coordinator before it is saved.

You must override this method in a subclass of NSAtomicStore.

See Also

Loading a Store