June 2016
Beginner to intermediate
240 pages
6h 17m
English
The NSManagedObject is the object we work with the most in a Core Data application. Each instance of the NSManagedObject represents one entity in our Core Data repository. By combining Core Data with KVO (Key Value Observing) and KVC (Key Value Coding), this one object can dynamically represent any object that we need and that can be defined in our data model. KVO and KVC are discussed in great detail in Chapter 10, OS X: Bindings, KVC, and KVO. To learn more about them, I highly recommend you read Apple’s excellent documentation on the subjects.[2]
All of the properties and relationships defined in our data model are available and easy to access directly from the NSManagedObject. Without subclassing ...