Beginning Core Data
Learn the basics of using Core Data in this beginning series! You’ll learn how to model your data with attributes and relationships; add and update records; and then fetch your data with sorting and filtering options. By Brian Moakley.
Part 1: Part 1
What is Core Data? What does it bring to the table? This introduction will give you an overview of this powerful framework.
This video provides an overview of the starter project and how it works so you can be familiar with it throughout the course.
Core Data is composed of a variety of components. In this tutorial, you'll learn about the various pieces that make up Core Data.
Managed objects are what you use to construct your Core Data objects. In this video, you'll get started by making one.
With our entity in place, it's time to add some additional attributes to it. Your challenge is to do this.
As you start to build your objects, you'll need to both get them and then to sort them. This video will walk you through the process.
Core Data allows you to save binary data to your data store. This video shows you how to work with binary data.
While not Core Data specific, predicates allow you to use a SQL-like syntax to search through your collections for a specific objects.
With a few lines of code, you can easily filter your Core Data objects. This video walks you through the process.
In this video, you'll learn how to sort your objects by the way of sort descriptors.
While we implemented filtering and sorting, unfortunately, things aren't working as expected. Your challenge is to fix it.
This video concludes the first section and gives an overview of what will be covered in the next one.
Part 2: Part 2
This video provides an overview of what will be covered in the second section.
By combining a fetch request with a controller, you get a lot of power in an easy to use object.
This video covers the process of ordering your objects by section.
In your first challenge of the section, you'll add another entity.
This video explores relationships that you can establish between objects.
Once you define a relationship in your model, you'll need to access it in code. This video will show you how.
This video covers the various deletion rules that you can use.
In your final challenge, you'll write the code to delete the pet objects.
The fetched results controller can inform you when your data changes. In this video, you'll learn how to respond to such changes.
This video concludes the series but provides alternatives to using Core Data.