Instance Property

shouldRefreshRefetchedObjects

A Boolean value that indicates whether the property values of fetched objects will be updated with the current values in the persistent store.

Declaration

@property(nonatomic) BOOL shouldRefreshRefetchedObjects;

Discussion

This value is YES if the property values of fetched objects will be updated with the current values in the persistent store; otherwise, it is NO.

By default when you fetch objects, they maintain their current property values, even if the values in the persistent store have changed. Invoking this method with the parameter YES means that when the fetch is executed, the property values of fetched objects are updated with the current values in the persistent store. This is a more convenient way to ensure that managed object property values are consistent with the store than by using refreshObject:mergeChanges: (NSManagedObjetContext) for multiple objects in turn.

See Also

Managing How Results Are Returned

resultType

The result type of the fetch request.

includesPendingChanges

A Boolean value that indicates whether, when the fetch is executed, it matches against currently unsaved changes in the managed object context.

propertiesToFetch

A collection of either property descriptions or string property names that specify which properties should be returned by the fetch.

returnsDistinctResults

A Boolean value that indicates whether the fetch request returns only distinct values for the fields specified by propertiesToFetch.

includesPropertyValues

A Boolean value that indicates whether, when the fetch is executed, property data is obtained from the persistent store.

returnsObjectsAsFaults

A Boolean value that indicates whether the objects resulting from a fetch request are faults.

NSFetchRequestResultType

Constants that specify the possible result types a fetch request can return.

NSFetchRequestResult

An abstract protocol used with parameterized fetch requests.