Singleton vs Delegating data source


#1

Hi

Chapter 10 and the Possessions app uses the creation iof a singleton datastore to handle datasource and passing information around in an app.

However I was under the impression that Apple prefers the delegation pattern for datasources.

Is this the case or am I confusing two separate things?

Thanks
Steve


#2

Since I posted this I did a bit of googling around and went through this tutorial about creating a data model.

developer.apple.com/library/ios … ction.html

It has cleared things up for me considerably.