Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Nir Ohayon
2,399 PointsIs it ok to use NSFetchResultController from a separate class than the table view class?
I have a small project with core data.
I'm using NSFetchResultController object called fetchResultController to retrieve data from the database for my table view. And I know that NSFetchResultController is a class that was built to make it easier to bridge between core data and table views.
I'm storing the NSFetchResultController object in a different class than the table view controller class that I call localDataManager, is that ok? or the NSFetchResultController object is got to stay in the table view class?
Thanks ahead!