You can watch this episode by subscribing to Cocoacasts Plus.

Seeding a Core Data Persistent Store

Avoiding Duplicates

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

Every time we launch Notes, the persistent store is seeded with data. That's not what we want as it results in duplicates. In this episode, you learn how to easily avoid duplicates and how to start with a clean slate if you decide you no longer need seed data.

Instant and Unlimited Access
to 400+ Cocoacasts Tutorials

Monthly

$19 / month

Pay Once a Month

Yearly

$8.25 / month (billed annually)

Pay Once a Year and Save 56%

Next Episode "Loading Seed Data From a File"