Alex Rivera | Logout

Where to place the "Core Data Stack" in a Cocoa/Cocoa Touch application

Asked 2009-08-12T17:19:42.293
67

In the iPhone Core Data Template, Apple places the Core Data Stack in the App Delegate.

My initial inclination however is to move this code into it's own class whose responsibility is to handle the management of the Core Data Stack.

Do you typically encapsulate this functionality within its own class or do you leave it in the App Delegate?

Edit
Report

1 Answer

28

I have a singleton class that i let do my core data managment and i do not leave it on the app delegate. I rather not clutter the app delegate class with methods i might need for conviniece such as fetching certain objects etc

answered 2009-08-12T17:26:35.070

Your Answer