title: ios/xcode: Best place for Core Data properties and methods
body: <p>I have followed various core data tutorials and they all seem to recommend different places to put the core data code, i.e. properties and methods for the nsmanagedobject, nsmanagedobjectcotext and nspersistent store coordinator. </p>
  
  <p>In the Xcode sample project they put it in app delegate. </p>
  
  <p>Based on the MVC pattern, others recommend putting all the data and logic in a separate data class like Model or Item.  However, this does not seem advisable if you are using the editor to automatically generate a class for each entity or table in the data model as each time you did this you would overwrite the core data properties and methods</p>
  
  <p>Another option I have seen is to put it in the view controller. But this does not seem to be a good example of MVC.</p>
  
  <p>Surely there must be a best practice for this.  Would appreciate guidance on this point as I am building an app and don't want to have to redo this important step.</p>
  
  <p>Thank you.  </p>