NSFRC doesn't call DidChangeContent: after update to non-fetched MO
Originator: | heath.borders | ||
Number: | rdar://12930409 | Date Originated: | 24-Dec-2012 12:31 AM |
Status: | Open | Resolved: | |
Product: | iPad SDK | Product Version: | Version 4.5.2 (4G2008a) |
Classification: | Serious Bug | Reproducible: | Always |
24-Dec-2012 12:31 AM Heath Borders: Summary: NSFetchedResultsController doesn't call -[NSFetchedResultsControllerDelegate controllerDidChangeContent:] when a managed object that isn't part of the NSFRC's initial fetchedObjects is updated. Steps to Reproduce: Run the attached project. Expected Results: -[NSFetchedResultsControllerDelegate controllerDidChangeContent:] is called. NSManagedObjectContextObjectsDidChangeNotification is posted. Actual Results: -[NSFetchedResultsControllerDelegate controllerDidChangeContent:] isn't called. NSManagedObjectContextObjectsDidChangeNotification isn't posted. Regression: Notes: Attached project available at https://github.com/hborders/NSFetchedResultsControllerUpdateUnfetchedBug 24-Dec-2012 12:31 AM Heath Borders: 'NSFetchedResultsControllerUpdateUnfetchedBug.zip' was successfully uploaded
Comments
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!
Workaround
We stumbled over this today and found an interesting workaround:
http://stackoverflow.com/questions/3923826/nsfetchedresultscontroller-with-predicate-ignores-changes-merged-from-different/3927811#3927811