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.
|