ThreadedCoreData: Concurrent operations using Core Data

Last Revision:
Version 4.0, 2016-02-08
Upgraded to the iOS 9.0 SDK, now uses NSURLSession, changed to a newer xml feed and updated the parser.
(Full Revision History)
Build Requirements:
iOS 9.0 SDK or later
Runtime Requirements:
iOS 8.0 or later

Demonstrates how to use Core Data in a multi-threaded environment, following the first recommended pattern mentioned in the Core Data Programming Guide.

Based on the SeismicXML sample, it downloads and parses an RSS feed from the United States Geological Survey (USGS) that provides data on recent earthquakes around the world. What makes this sample different is that it persistently stores earthquakes using Core Data. Each time you launch the app, it downloads new earthquake data, parses it in an NSOperation which checks for duplicates and stores newly founded earthquakes as managed objects.

For those new to Core Data, it can be helpful to compare SeismicXML sample with this sample and notice the necessary ingredients to introduce Core Data in your application.