I looked through a core data tutorial which puts the core data code in the AppDelegate class that is created upon creating a Window project. I was able to successfully save and retrieve data from the premade AppDelegate class.

My question is, if i have a ViewController that saves data, how do i go about saving data from that specific class. 

* Do i need to redefine the persistent store and managedObjectModel in that class?
* If that is the case, what is the programmatic way to do it (since previously it was generated for me) i.e what methods/instancevariables/properties do i need to declare.

Standing by for any clarifications there may be