Here is the sample project to download.
Core Data is very powerful, but the learning curve is steep. Using Apples Core Data templates doesn’t help much because it encourages “voodoo programming”— that is using code in your application that you don’t understand. That voodoo code might work to begin with, until something crashes, then you caught with your pants down, because you don’t know if it is your code or the voodoo code that caused the crash. In this tutorial series I try to demystify Core Data by taking baby steps, making sure that each step is thoroughly explained.
In the first tutorial called “Introduction to Core Data” we mention different techniques for handling persistence like plists, NSCoding, SQLite and Core Data. We compare SQLite and Core Data and point out the differences. We explain the idea behind Core Data and talk about its infrastructure. We also look at the main classes that make up the Core Data. This tutorial will give you a solid theoretical understanding of what Core Data is, how it is different from SQLite and what the benefits are.
In the second tutorial called “Core Data part 1″ we create a simple application, integrating Core Data with cocos2d, from ground up. You will get practical knowledge of how the different parts of Cored Data work together. You can use the code from this tutorial as a basis for your own Core Data project. This code is fully integrated with cocos2d, is explained in detail, and is transparent.