Creates and populates a store with the external records found at a given URL.
- macOS 10.6+
- Core Data
The identifier for a store.
If this value is
nilthen the method imports the records for the first store found.
The location of the directory containing external records.
An URL object that specifies the location for the new store.
There should be no existing store at this location, as the store will be created from scratch (appending to an existing store is not allowed).
A dictionary containing key-value pairs that specify whether the store should be read-only, and whether (for an XML store) the XML file should be validated against the DTD before it is read. For key definitions, see Store Options.
A string constant (such as
NSSQLite) that specifies the type of the new store—see Persistent Store Types.
If an error occurs, upon return contains an instance of
NSErrorthat describes the problem.
An object representing the newly-created store.