A Boolean value that indicates whether the property values of fetched objects will be updated with the current values in the persistent store.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Data
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 refresh
(NSManaged
) for multiple objects in turn.