Type Method

setMetadata:forPersistentStoreWithURL:error:

Sets the metadata for the store at a given URL.

Declaration

+ (BOOL)setMetadata:(NSDictionary<NSString *,id> *)metadata forPersistentStoreWithURL:(NSURL *)url error:(NSError * _Nullable *)error;

Parameters

metadata

The metadata for the store at url.

url

The location of the store.

error

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

Return Value

YES if the metadata was written correctly, otherwise NO.

Discussion

Subclasses must override this method to set metadata appropriately.

Discussion

See Also

Managing Metadata

+ metadataForPersistentStoreWithURL:error:

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

metadata

The metadata for the persistent store.

- loadMetadata:

Instructs the persistent store to load its metadata.