Instance Method

fetchRequestTemplateForName:

Returns the fetch request with a specified name.

Declaration

- (NSFetchRequest *)fetchRequestTemplateForName:(NSString *)name;

Parameters

name

A string containing the name of a fetch request template.

Return Value

The fetch request named name.

Discussion

If the template contains substitution variables, you should instead use fetchRequestFromTemplateWithName:substitutionVariables: to create a new fetch request.

See Also

Getting Fetch Request Templates

fetchRequestTemplatesByName

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

- fetchRequestFromTemplateWithName:substitutionVariables:

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

- setFetchRequestTemplate:forName:

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