Core Data for iOS and OS X

with Simon Allardice
please wait ...
Core Data for iOS and OS X
Video duration: 0s 4h 29m Intermediate

Viewers:

Core Data is an object-oriented persistence framework used to manipulate and store data in iOS and OS X applications, and it's a core competency for any Apple developer. This course introduces the concepts behind Core Data: what it is, what it does, and how to get started. Author Simon Allardice explores the Core Data stack of objects and steps through the hands-on process of using Core Data in both iOS and Cocoa. The course shows how to shift from a database-focused or file-focused approach into a true object persistence approach: working with saving, loading, searching, and filtering. Discover how to model your data correctly, integrate Core Data objects with iOS and Cocoa user interfaces, and take existing data and load it into your app.

Topics include:
  • Understanding Core Data and object persistence frameworks
  • Creating a Core Data project
  • Exploring data modeling
  • Creating entities, attributes, and relationships
  • Creating managed objects
  • Fetching in Core Data
  • Implementing undo and redo support
  • Creating a Core Data Cocoa app without code
  • Responding to validation issues
  • Converting store types
  • Preloading default data
Subject:
Developer
Software:
Mac OS X iOS
Author:

Welcome

Hi, this is Simon Allardice, and welcome to Core Data for iOS and OS X. In this course I'll begin by talking about what Core Data is and how it can help us. We'll explore the vocabulary and the ideas of Core Data, terms like managed objects, predicates, and what these mean. But we'll quickly get hands-on. Let's start by modeling our data using the tools in Xcode to describe our applications in a way that Core Data understands and enables us to easily save or persist that information. If we've saved it, we need to be able to retrieve it.

We'll see how to fetch, bring our data back, and tie it into a user interface. Beyond the most trivial of applications, Core Data is what you should be using to work with data in your iOS and Mac applications. It's an essential competency for an Apple developer. Let's get started.

Find answers to the most frequently asked questions about Core Data for iOS and OS X .


Expand all | Collapse all
please wait ...
Q: In the CoursesViewController.m file, I receive a message that the method dismissModalViewControllerAnimated is no longer supported by Apple. Is there a newer method to use?
A: You may have received the warning that a call to the dismissModalViewControllerAnimated: method is now deprecated.

This is a recently deprecated method, so the code _will_ continue to work using that call, but to remove the warning, change the code from:

[self dismissModalViewControllerAnimated:YES];

to the current recommended version:

[self dismissViewControllerAnimated:YES completion:nil];

It should take care of that message.
please wait ...