2. Agenda
• Core Data Features
• Core Data Architecture
• Magical Record
3. Core Data
• Part of Cocoa API in Mac OSX
• From OSX 10.4 and iOS 3.0
• like Core Audio, Core Location ….etc.
4. Core Data Features
• change tracking and undo support
• lazy loading
• automatic validation of property values
• migration
• ui integration
• KVC,KVO
5. Core Data Architecture
1. Managed Object Model
2. Managed Object Context
3. Persistent Store Coordinator
4. Managed Object
6. Database vs Core Data
Table Schema NSEntityDescription
Table Record NSMangedObject
Database Access NSPersistentStoreCoordinator
Database Transaction NSManagedObjectContext
7.
8. Magical Record
!
• Wrapper libraries provide some much needed
syntactic sugar and convenience methods to
Core Data's verbose and complicated APIs.
• Inspired by Active Record
• DRY