Instance Method


Initializes the managed object model using the model file at the specified URL.


- (instancetype)initWithContentsOfURL:(NSURL *)url;



An URL object specifying the location of a model file.

Return Value

A managed object model initialized using the file at url.

See Also

Initializing a Model

- init

Initializes an empty managed object model.

+ mergedModelFromBundles:

Returns a model created by merging all the models found in given bundles.

+ mergedModelFromBundles:forStoreMetadata:

Returns a merged model from a specified array for the version information in provided metadata.

+ modelByMergingModels:

Creates a single model from an array of existing models.

+ modelByMergingModels:forStoreMetadata:

Returns, for the version information in given metadata, a model merged from a given array of models.