Instance Method


Executes the fetch request.


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



If the fetch is not successful, upon return contains an error object that describes the problem.

Return Value

YES if the fetch executed successfully, otherwise NO.


After executing this method, you can access the receiver’s the fetched objects with the property fetchedObjects.

Special Considerations

This method returns NO (and a suitable error in error) if the fetch request doesn’t include a sort descriptor that uses the section name key path specified in initWithFetchRequest:managedObjectContext:sectionNameKeyPath:cacheName:.

See Also

Initializing a Fetched Results Controller

- initWithFetchRequest:managedObjectContext:sectionNameKeyPath:cacheName:

Returns a fetch request controller initialized using the given arguments.