MVC, can model save/load its data?
Posted
by fuzzygoat
on Stack Overflow
See other posts from Stack Overflow
or by fuzzygoat
Published on 2010-03-12T15:54:04Z
Indexed on
2010/03/12
15:57 UTC
Read the original article
Hit count: 269
Quick question, my data model is a singleton object and it contains a list of names I want archive. My idea is to make the model responsible for loading / saving this data. The Model>Load will then be called by the ViewController>viewDidLoad and the Model>Save by ViewController>applicationWillTerminate. I could do the load / save directly within the ViewController, but this would be messy as the list of names are on instance variable of the model.
gary
© Stack Overflow or respective owner