Explanation of NSIncrementalStore in plain english

后端 未结 3 659
终归单人心
终归单人心 2021-01-31 19:47

I\'ve been seeing NSIncrementalStore popping up as I\'ve been researching the best ways to interact with a web service using core data.

After reading an art

3条回答
  •  不要未来只要你来
    2021-01-31 20:07

    You would use NSIncrementalStore to access a remote server through Core Data. In stead of reading from and writing to a local file, you'd push request to the server and get a response back which you'd push into Core Data. Likewise for save, etc.

    Note, however, that this is non-trivial to do. It's a very powerful feature, but unless you're an expert in Core Data usage, I'd strongly discourage it, since there are endless opportunities to shoot yourself in the foot unless you know a lot about how Core Data's interaction with the storage layer works.

    If using an uploaded solves your problem, then do that instead.

提交回复
热议问题