What’s the difference between data source and delegate?

The datasource supplies the data, the delegate supplies the behavior.

In MVC, datasource is in the model layer and the delegate is in the control layer.

Actually, on second thought, the datasource is usually controller that is lower down, closer to the model. I don’t think I’ve ever used a model object as my datasource.

Leave a Comment