Concurrent operations using Core Data

Last Revision:
Version 1.3, 2014-06-23
Upgraded for Xcode 5.0 and iOS 7.
(Full Revision History)
Build Requirements:
Xcode 5.1.1, iOS 7.0 SDK or later
Runtime Requirements:
iOS 6.0 or later, Automatic Reference Counting (ARC)

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.