Join Simon Allardice for an in-depth discussion in this video Understanding what Core Data provides, part of Core Data for iOS and OS X.
The aim of Core Data, the way that it's different is that it allows us to take the state of…all the interconnected objects in our application, meaning our object graph and just saying save…and not iterating programmatically through all of these objects one at a time calling…save on each one and then trying to re-create those exactly as they were saved,…but instead being able to instantly take the whole thing and just freeze dry it in place…and store it to take a snapshot and store it on the device or the laptop hard drive.…
Well, I say save everything, but you know, typically you're not really interested in all the objects.…You are only interested in the important objects.…You don't usually need or even want to save every single object in a running application…because you'll often have lots of temporary working variables, and things like user interface…objects are already stored in your NIB files. So a subset of objects, the important stuff.…Typically the M of MVC of Model View Controller, meaning your model objects created from your custom classes,…
- Understanding Core Data and object persistence frameworks
- Creating a Core Data project
- Exploring data modeling
- Creating entities, attributes, and relationships
- Creating managed objects
- Fetching in Core Data
- Implementing undo and redo support
- Creating a Core Data Cocoa app without code
- Responding to validation issues
- Converting store types
- Preloading default data
Skill Level Intermediate
Q: In the CoursesViewController.m file, I receive a message that the method dismissModalViewControllerAnimated is no longer supported by Apple. Is there a newer method to use?
A: You may have received the warning that a call to the dismissModalViewControllerAnimated: method is now deprecated.<br /><br />This is a recently deprecated method, so the code _will_ continue to work using that call, but to remove the warning, change the code from:<br /><br />[self dismissModalViewControllerAnimated:YES];<br /><br />to the current recommended version:<br /><br />[self dismissViewControllerAnimated:YES completion:nil];<br /><br />It should take care of that message.