Hi folks,
I have created a MusicPlayer class in the model-view-controller design
pattern.
But I'm having a moral dilemma...
I want to make it possible to add a playList to the player after creating
the class.
But the class (MusicPlayer) only creates instances of the model
(MusicPlayerModel) and the view (MusicPlayerView) and registers the view to
the model.
The method to add a playlist is located (logically) in the model.
So I was wondering what the best method may be to access the model to add a
playlist.
Some say the best way is to create a wrapper function to the MusicPlayer
class, that simply runs the method of the model. But then I need to create
extra kinda useless functions in the MusicPlayer class.
So what would you guys do?

Greetings Peter
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to