Type Method

mergedModelFromBundles:

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

Declaration

+ (NSManagedObjectModel *)mergedModelFromBundles:(NSArray<NSBundle *> *)bundles;

Parameters

bundles

An array of instances of NSBundle to search. If you specify nil, then the main bundle is searched.

Return Value

A model created by merging all the models found in bundles.

See Also

Initializing a Model

- initWithContentsOfURL:

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

- init

Initializes an empty managed object model.

+ 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.