I have finally managed to get core data working and beginning to understand it. So far I have just been playing in a window based app with core data enabled, playing inside the app delegate files.
But how can I access my managedObjectContext from outside the app delegate, for example if I had a UIView subclass?
Try using
To get rid of warnings, cast the delegate as your actual AppDelegate; for example,
EDIT:
After you change up any data, you’ll need to save it. Here’s the method I use:
Change up the log statement as you see fit.