You can watch this episode by subscribing to Cocoacasts Plus.

Seeding a Core Data Persistent Store

Loading Seed Data From a File

Seeding a Core Data Persistent Store
1 Three Strategies 05:11
2 Hard-Coding Seed Data Plus 09:52
3 Seeding Data Asynchronously Plus 08:34
4 Avoiding Duplicates Plus 08:12
5 Loading Seed Data From a File Plus 08:21
6 Loading Seed Data From a Remote Server Plus 05:45

Hard-coding seed data is quick and easy, but it's not my preferred solution. Loading seed data from a file is a strategy I like more. The idea is simple. You include a file with seed data in the application bundle. The file is loaded at runtime and its contents parsed. The contents is used to seed the persistent store with data.

Purchase Course

Purchase Seeding a Core Data Persistent Store and access it whenever you want and for as long as you want.

Join Cocoacasts Plus

Join Cocoacasts Plus and access every 350+ tutorials including Seeding a Core Data Persistent Store.

Next Episode "Loading Seed Data From a Remote Server"