Quote:
Originally Posted by Dollopp
Hi,
you should put the code which you are talking about in what is called a model class, which is a class which contains and processes data for your applications. This is one of the three classes in the Model View Controller paradigm. Just google Model View Controller, check it in the apple online documentation, search this forum for it and check YouTube (there is a small series of humorous videos on the subject). It is one of the main programming paradigms on the iphone.
Hope this helps
M.J.
|
Thanks for the reply, M.J.
I actually have a pretty decent grasp of the MVC paradigm. My question is more about implementation of the paradigm in a more specific context.
It makes sense that I would create an instance of some model class, initialize the class' ivars and do specific operations on that data from within the class via it's instance methods. What I'm hazy about is where to create the instance and initialize it's data if multiple views rely on that object at any given time during the app's lifecycle.
Did that make any sense?
Chris.