Contents

setOption(_:forKey:)

Sets an option on the store.

Declaration

func setOption(_ option: NSObject?, forKey key: String)

Parameters

  • option:

    The value to be set for an option on the store.

  • key:

    The key of the value to be set for an option on the store.

Discussion

If a value was previously set for the given option, that value is replaced with the given value. Note that the keys are case-sensitive. For a list of the available options, see NSPersistentStoreCoordinator.

See Also

Configuring a Persistent Store Description