objective c - Using Core Data as a local cache for data retrieved from remote web services -


my project has need cache on ios device data retrieved remote web service. idea view controller ask cache document objects has, example, , in background request refresh web service, returning view controller new document objects received. i'm wondering whether it's possible view controllers use nsfetchedresultscontroller retrieves whatever objects matching criteria can find locally in database, , asynchronously asks data refreshes web service in background. in doing so, nsfetchedresultscontroller update database , of course trigger didchangeobject method of fetchedresultscontroller delegate views can update accordingly. sound reasonable? have suggestions implementing such thing?

for our project, ended being able simplify problem quite bit. however, on journey of discovery, came across nsincrementalstore, ticket problem posed in question. gives control on how , cd persists data. here's a nice post it, , an easy-to-understand example. admittedly there's not lot of doco around it, these posts helped me going.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -