-[NSFetchRequest setShouldRefreshRefetchedObjects:] doesn't work in child MOCs

Originator:krismarkel
Number:rdar://11485960 Date Originated:5/18/2012
Status:Closed Resolved:Duplicate/11478919
Product:iPhone SDK Product Version:5.1
Classification:Serious Bug Reproducible:Always
 
Summary:

Setting shouldRefreshRefetchedObjects is supposed to update a MOs properties based on what's in the persistent store, but it doesn't work across child MOCs.

Steps to Reproduce:

1. Run the attached project on a device or the simulator. (http://cl.ly/03313a1a2x0z431R1Q3N)
2. Tap the + button to create a new event.
3. Go into the event detail and tap the Do Work button.

Expected Results:

In the log output, the name of the event should be "Charlie".

Actual Results:

The name is "Lola".

Regression:

Notes:

This is from the documentation for setShouldRefreshRefetchedObjects:

By invoking this method with the parameter YES, when the fetch is executed the property values of fetched objects to be updated with the current values in the persistent store.

Comments

Closed

Dupe of rdar://11478919

By krismarkel at May 23, 2012, 4:46 p.m. (reply...)

Duped as 11486142


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!