UA-17470720-3

Jump to content


Photo
- - - - -

CoreData, Web Service & custom save/fetch

data-stores core-data web-services

  • Please log in to reply
No replies to this topic

#1 Laeger

Laeger

    Experienced Member

  • STV 5.0 Pro
  • PipPipPipPip
  • 59 posts
Reputation: 6
Good

Posted 20 January 2014 - 07:48 AM

Hello,

As the title of the post mentions I am using CoreData with a web service.  As such I would like to be able to call custom -save: and -executeFetchRequest: methods on the managedObjectContext so that when local objects are saved or fetched, a request to the web service is also kicked off.

 

I think the best way to accomplish this is to subclass SCCoreDataStore.  My question is which methods should I over write?  So far it looks like I should over write -commitData for saves and either -fetchObjectsWithOptions: or -asynchronousFetchObjectsWithOptions:success:failure.  Would that cover all save/fetch requests that STV is making when it auto-generates detailViews, etc?

 

Thanks,

Aaron







Also tagged with one or more of these keywords: data-stores, core-data, web-services

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users