Why is the CoreData stack in XCode's CoreData enabled template treated as private?

The reason for this is because you should be using dependency injection in your designs. This is the recommended design by the Core Data team. What is expected is that your app delegate will set the NSManagedObjectContext reference in your root view controller(s).

From there the controllers will set or inject the necessary dependencies in the following view controllers.

If your project is big and needs to access the managed object context from outside of the AppDelegate, I would just move the property declaration of managedObjectContext to the header file, as in.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions