Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Nehemiah Reese
17,692 PointsCan anyone give me a non-technical description of Core Data and how it is used?
Beginner programmer having trouble understand Core Data use case. Reading core data descriptions online not helping.
2 Answers
Zachary Betz
10,413 PointsNehemiah, persistent data just means that the data is persisted, i.e. it continues to exist after the app is closed. So, in Jason's example, once the to-do app was closed, the to-do data would still be stored in core data. And, once the application was re-opened, it would then read the to-do data (from core data) back into the app.
I would say that you're in the ball park when you mentioned entities and data sets. Much like a relational database, core data stores entities (tables), and each of these entities has attributes (fields/columns). Relationships can then be created that connect one entity to another by certain attributes (think foreign key to primary key relationships).
Jason Edstrom
8,976 PointsIt is a locally based database that allows for your apps to have persistent data while they are installed. A to-do app is a good example of where Core Data can be used.
Nehemiah Reese
17,692 PointsWhat is persistent data? My definition would be data that can be entered then stored in an entity. And that entity could have multiple sets of data. Am I in the ball park?
Nehemiah Reese
17,692 PointsNehemiah Reese
17,692 PointsThanks, makes way more since now. Saved me a lot of time!
Zachary Betz
10,413 PointsZachary Betz
10,413 PointsSure thing! :)