Instance Property

fetchRequestTemplatesByName

A dictionary of the receiver’s fetch request templates, keyed by name.

Declaration

var fetchRequestTemplatesByName: [String : NSFetchRequest<NSFetchRequestResult>] { get }

Discussion

If the template contains a predicate with substitution variables, you should instead use fetchRequestFromTemplate(withName:substitutionVariables:) to create a new fetch request.

See Also

Getting Fetch Request Templates

func fetchRequestFromTemplate(withName: String, substitutionVariables: [String : Any]) -> NSFetchRequest<NSFetchRequestResult>?

Returns a copy of the fetch request template with the variables substituted by values from the substitutions dictionary.

func setFetchRequestTemplate(NSFetchRequest<NSFetchRequestResult>?, forName: String)

Associates the specified fetch request with the receiver using the given name.