Ok, so I've got a core data app here, and the way it's set up, is that the different windows each have their own managed object context, but are all using the same persistent store coordinator. In the main window, I've got the core data widget, just for easy viewing of the state of my persistent store. The thing I don't understand, is that when window #2 saves a few objects into my persistent store, and I then click on the fetch button in the widget in the main window, it won't load all the objects that are just saved. Now when I quit the app and restart it, the widget does load all the objects that were saved.
I would have thought that it would load simply because both windows are using the same persistent store coordinator, but I clearly don't understand Core Data that well. Can someone explain why this is happening the way it is?
I would have thought that it would load simply because both windows are using the same persistent store coordinator, but I clearly don't understand Core Data that well. Can someone explain why this is happening the way it is?