Start learning with our library of video tutorials taught by experts. Get started

Core Data for iOS and OS X
Illustration by John Hersey

Core Data for iOS and OS X

with Simon Allardice

Video: 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.
Expand all | Collapse all
  1. 3m 16s
    1. Welcome
      51s
    2. What you need to know
      1m 45s
    3. Using the exercise files
      40s
  2. 27m 15s
    1. Learning Core Data
      5m 33s
    2. Why use Core Data?
      6m 51s
    3. Understanding what Core Data provides
      7m 36s
    4. Creating a Core Data project
      7m 15s
  3. 25m 49s
    1. Introduction to data modeling in Core Data
      4m 18s
    2. Creating entities
      4m 8s
    3. Creating and configuring attributes
      8m 2s
    4. Modeling relationships
      9m 21s
  4. 33m 22s
    1. Creating managed objects
      12m 46s
    2. Understanding the managed object context
      7m 59s
    3. Saving the managed object context
      4m 32s
    4. Creating custom managed object subclasses
      8m 5s
  5. 26m 45s
    1. Creating and using a fetch request
      7m 42s
    2. Ordering with sort descriptors
      3m 53s
    3. Using predicates
      9m 32s
    4. Creating fetch request templates
      5m 38s
  6. 1h 14m
    1. Creating the project and the data model
      13m 44s
    2. Configuring the fetched results controller
      13m 11s
    3. Creating and configuring the modal view controller
      19m 26s
    4. Responding to changes in the underlying objects
      8m 53s
    5. Deleting objects from the table view
      3m 5s
    6. Creating a display view controller
      7m 8s
    7. Switching modes in a view controller
      9m 0s
  7. 42m 7s
    1. Creating a Core Data Cocoa app without code
      11m 20s
    2. Creating a drilldown application using multiple entities
      12m 3s
    3. Responding to validation issues
      8m 35s
    4. Working with relationships and delete rules
      3m 53s
    5. Implementing undo and redo functionality
      6m 16s
  8. 30m 10s
    1. Revisiting Core Data store types
      5m 40s
    2. Converting store types
      5m 33s
    3. Preloading default data
      6m 47s
    4. Dealing with schema changes
      4m 1s
    5. Exploring lightweight migration
      8m 9s
  9. 6m 46s
    1. Final thoughts: Back to the stack
      6m 46s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Core Data for iOS and OS X
4h 29m Intermediate Oct 17, 2012

Viewers: in countries Watching now:

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
Subjects:
Developer Mobile Apps Desktop Apps Databases
Software:
Mac OS X iOS
Author:
Simon Allardice

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.
 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Core Data for iOS and OS X.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Notes cannot be added for locked videos.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.