O'Reilly logo

MacRuby in Action by Brendan G. Lim with Jerry Cheung and Jeremy McAnally

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Implementing persistence with Core Data

 

This chapter covers
  • Learning Core Data basics
  • Using the NSManagedObject and NSManagedObjectContext classes
  • Creating a MacRuby application that uses Core Data

 

When you create your own MacRuby applications, take into account that almost every application persists some amount of information. When your application depends on user-created content it’s important that this information be available each time the application is used.

In chapter 3 you created a Todo List application that stores individual tasks in memory. When you relaunch the application, none of the previously created items appear. Core Data provides a way to persist this data. In this chapter we’ll investigate Core Data and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required