Hour 7. What Managed Objects Can Do

What You’ll Learn in This Hour:

• Getting inside managed objects

• Putting managed objects in context

• Exploring data types—Booleans, BLOBs, and dates

• Transforming data

• Validating data

Using Managed Objects

Managed objects are one of the primary components of the Core Data architecture. An NSManagedObject represents a record from the database (persistent store in Core Data terms). It is managed objects that you deal with in your code: you create, save, modify, and delete them as the user requests.

• To use managed objects in your app, you need to have built the Core Data stack as described previously in Hour 4, “Getting the Big Core Data Picture,” p. 85, to establish the connection between the data store ...

Get Sams Teach Yourself Core Data for Mac® and iOS in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.