The first time I came into contact with Core Data was more than ten years ago. I was immediately overwhelmed by the terminology, the complex setup, and the many rules I had to stick to.

Does this sound familiar? I wondered if it was worth the hassle? And why did experienced developers swear by Core Data? How was I going to master Core Data and integrate it into an application without running into mysterious crashes?

The solution was surprisingly simple. Whenever I teach developers Core Data, I emphasize how important it is to focus on the fundamentals first. The vast majority of issues developers run into are caused by a lack of knowledge about the ins and outs of the framework. Core Data isn’t difficult if you understand how the framework works.

Over the years, I’ve taught thousands of developers how to use Core Data. This has taught me what the common pitfalls are developers run into. In Mastering Core Data With Swift, I show you the pitfalls you need to avoid.

The book follows a proven roadmap that starts with the fundamentals of the framework. We cover some theory, but, more importantly, you immediately apply what you learn to build a production application. Practice makes perfect. Right? This very much applies to any programming subject.

In Mastering Core Data With Swift, you learn everything you need to know to integrate Core Data in a new or an existing Swift project. We focus on the key players of the framework and build an application that takes advantage of the core features of the framework.

We use the latest and greatest to build an application. Xcode 9 has many improvements that make working with Core Data fantastic. And the intuitive syntax of Swift adds the cherry on the cake. It has never been easier to get started with Core Data.

Table of Contents

Chapter 1 What Is Core Data
Chapter 2 Building Notes
Chapter 3 Exploring The Core Data Stack
Chapter 4 Creating The Project
Chapter 5 Setting Up The Core Data Stack
Chapter 6 Core Data And Dependency Injection
Chapter 7 Data Model, Entities, And Attributes
Chapter 8 Data Model, Entities, And Relationships
Chapter 9 Configuring Relationships
Chapter 10 Working With Managed Objects
Chapter 11 Subclassing Nsmanagedobject
Chapter 12 Adding A Note
Chapter 13 Don’T Forget To Save
Chapter 14 Fetch Those Notes
Chapter 15 Fix That Mistake
Chapter 16 To The Trash Can
Chapter 17 Introducing The Fetched Results Controller
Chapter 18 Exploring The Nsfetchedresultscontrollerdelegate Protocol
Chapter 19 Adding Categories To The Mix
Chapter 20 Adding A Dash Of Color
Chapter 21 Data Model Migrations
Chapter 22 Versioning The Data Model
Chapter 23 Assigning Tags To A Note
Chapter 24 Working In A Multithreaded Environment
Chapter 25 Updating The Core Data Manager For Concurrency
Chapter 26 Using A Better Core Data Stack
Chapter 27 Replacing The Core Data Manager Class
Chapter 28 Understanding Faulting
Chapter 29 Where To Go From Here

Book Details

Title: Mastering Core Data With Swift: Updated for Xcode 9 and Swift 4, 2nd Edition
Length: 266 pages
Edition: 2
Language: English
Publication Date: 2017-07-13
ISBN-10: B073XJ1S6V