UIView and Model View Controller (MVC) pattern
I'm trying to develop an App to hear music from the iPod (similar to the AddMusic example). I have a ViewController with a custom view which has some graphics and buttons to manage the music playback. With a navigationController I can choose a list from the iPod music and show it to an UITable (as the AddMusic).

Now I have to program all the methods to manage the list of music to play, stop, isPlaying, duration, etc.

My question is:

In order to follow the Model View Controller pattern, where is the best place to program all that methods (to manage music) that are not views, in the main ViewController or in the View where I have the buttons that interact with the user?

I think the answer should be the main ViewController but in that case how can I access that methods from the view where I have the user interface buttons and I'm managing some graphics? because the UIView don't have something like 'parentViewController'.


Thank you very much.

Kanick
UIView and Model View Controller (MVC) pattern
===

I'm trying to develop an App to hear music from the iPod (similar to the AddMusic example). I have a ViewController with a custom view which has some graphics and buttons to manage the music playback. With a navigationController I can choose a list from the iPod music and show it to an UITable (as the AddMusic).

Now I have to program all the methods to manage the list of music to play, stop, isPlaying, duration, etc.

My question is:

In order to follow the Model View Controller pattern, where is the best place to program all that methods (to manage music) that are not views, in the main ViewController or in the View where I have the buttons that interact with the user?

I think the answer should be the main ViewController but in that case how can I access that methods from the view where I have the user interface buttons and I'm managing some graphics? because the UIView don't have something like 'parentViewController'.


Thank you very much.

Kanick