Instance Method

loadMetadata:

Instructs the persistent store to load its metadata.

Declaration

- (BOOL)loadMetadata:(NSError * _Nullable *)error;

Parameters

error

If an error occurs, upon return contains an NSError object that describes the problem.

Return Value

YES if the metadata was loaded correctly, otherwise NO.

Discussion

There is no way to return an error if the store is invalid.

Discussion

See Also

Managing Metadata

+ metadataForPersistentStoreWithURL:error:

Returns the metadata from the persistent store at the given URL.

+ setMetadata:forPersistentStoreWithURL:error:

Sets the metadata for the store at a given URL.

metadata

The metadata for the persistent store.