I am a complete newbie working on my first iPhone project. I have been a .NET developer for 4 years to give you some background on where I am coming from. I am trying to follow the MVC pattern and do things the right way on my first project. I don't want to hack things together just to get them to work.
Here is my situation: I am trying to parse an XML feed which will only contain 1 object. I have a model object which represents the object I will get from parsing the XML feed. I have subclassed NSXMLParser and am able to successfully parse the XML feed and get values back (using NSLog to check the values). Here is where my disconnect occurs. When moving from my controller to the subclass, what is the best way to call the XMLParser, populate the model object, and return it to the controller?
I am looking for some kind of pattern to follow which would be considered a best practice. I don't want to just throw all the logic into a method on the controller, making it unable to be reused in any situation.