an object graph management and persistence framework • Core Data builds on that you’re storing data in objects, Core Data keeps track of the objects and their relationships to each other
• it embed in iOS • designed for UITableView • easy to save properties for objects Incredible Speed Core Data is the most powerful framework. If you use MagicalRecord, there is no need in writing a lot of code lines. Great Management Core Data manages all the relationships, as well as updates for delegates. It also keeps your controller in the loop of all the changes in the database.
apps with a relatively simple object graph • simple apps with a lot of data and framework usage as a requirement • fast and quality code writing Don'ts: • large data storage (BLOBs) • complex requests or data • simple apps where we can use NSArray
data file • -deleteObject: marks a Managed Object for deletion, but object doesn't actually go away until the Context's changes are committed • -rollback: reverts to the content of the data file • -undoManager: returns the NSUndoManager instance that in use in Context • -executeFetchRequest: error: runs a Fetch Request and returns any matching objects
different locations on disk • load data from different locations on disk The Persistent Store Coordinator handles management of actual data files on disk
like to fetch (required) • -setPredicate: specify a Predicate to constrain the results to a certain set of criteria • -setFetchLimit: sets the maximum number of objects to fetch • -setSortDescriptors: provides an array of NSSortDescriptors to specify the order the results should be return