Questions tagged [nsincrementalstore]

16 questions
3
votes
1 answer

Core Data Performing Fetch Request with Completion Handler or execute in some other thread other than Main thread

In my iOS application I am using Core Data. For table View listing I use NSFetchedResultsController and Connecting to Remote store I use NSIncrementalStore. My FetchedResultsController Context is having MainQueue Cuncurrency type.(I couldn't do it…
Govind
  • 2,337
  • 33
  • 43
1
vote
1 answer

NSIncrementalStore called with NSSaveChangesRequest.deletedObjects == nil

I am in the process of writing an NSIncrementalStore that is backed by a REST service. It works nicely for POSTing and GETing objects, but when DELETEing them I encounter the following problem: test calls [context delete:…
Drux
  • 11,992
  • 13
  • 66
  • 116
1
vote
1 answer

NSIncrementalStore to-one relationship fault fires immediately (eagerly loaded?)

I noticed that the fault for a to-one relationship fires immediately when the fetch request is executed even though I'm not accessing the relationship. Particularly, a breakpoint in the method…
pshah
  • 2,052
  • 1
  • 21
  • 40
1
vote
1 answer

Does NSIncrementalStoreNode updateWithValues's "values" argument require only the changed values or a complete new copy of the data?

I'm calling: - (void)updateWithValues:(NSDictionary *)values version:(uint64_t)version in an NSIncrementalStore subclass in order to update the cache with update NSManagedObject values. My question concerns the values argument. Do…
tslater
  • 4,362
  • 3
  • 23
  • 27
1
vote
0 answers

PFIncrementalStore for iOS...Has anyone made it work?

Has anyone had any success with PFIncremental store? Here: http://sbonami.github.io/PFIncrementalStore/ When I load of the sample project, then add my Parse keys and start the app, I don't see any objects appear in Parse. Additionally, if I…
Vincil Bishop
  • 1,594
  • 17
  • 21
1
vote
1 answer

How to use AFIncrementalStore to binding with a NSManagedObject

I am searching for more information on how to use AFIncrementalStore. I need to know how to implement it step by step. If I understood right AFIncrementalStore it is a layer for fetching data from the server and for the mapping data model. Am I…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
0
votes
0 answers

NSFetchedResultsController with NSIncrementalStore

I have a very basic in-memory implementation of a NSIncrementalStore subclass. It works as expected, it just fetches for now. I am trying to bind it to an UITableView with a NSFetchedResultsController, but I am not getting the updates (yes, I am the…
0
votes
2 answers

"NSInternalInconsistencyException" Entities for a configuration must already be in the model

I am trying to add a new entity in NSManagedObjectModel in my NSIncrementalStore Subclass. I am doing this in loadMetadata method but it keeps throwing this exception on the last line. See Code Below "NSInternalInconsistencyException" Entities for a…
0
votes
1 answer

Synchronize Core Data with paginated Web Service

So here's my problem. I have a pinterest-like application with a collection view that shows images.The "pins" al downloaded from a web service and stored in core data. This web service returns the data organized in pages. What's the correct way to…
0
votes
1 answer

Where does extra 'p' in NSManagedObjectID come from?

I am forming an NSManagedObjectID like this: NSManagedObjectID *objectID = [store newObjectIDForEntity: entityForPlayer referenceObject: GKLocalPlayer.localPlayer.playerID]; store is an…
Drux
  • 11,992
  • 13
  • 66
  • 116
0
votes
1 answer

Obtain Core Data persistent NSSQLiteStoreType store accessible as NSIncrementalStore

Apple Core Data documentation says that iOS's built-in SQLite Store (NSSQLiteStoreType) is an incremental store. However, if I create a store of this type (by adding it to a NSPersistentStoreCoordinator) it exists apparently as an instance of the…
Drux
  • 11,992
  • 13
  • 66
  • 116
0
votes
0 answers

NSIncrementalStore loadMetadata

Granted, this is a stupid question but it's a case of understanding the words but not the meaning. The documentation for the loadMetaData function in NSIncrementalStore states: Any subclass of NSIncrementalStore which is file-based must be able to…
user965972
  • 2,489
  • 2
  • 23
  • 39
0
votes
1 answer

newObjectIDForEntity in NSIncrementalStore

I have started using NSIncrementalStore. When you process a fetch request, you first have to process the predicate to get your internal reference objects. Then you convert these to objectID's and then you ask the context to get the corresponding…
user965972
  • 2,489
  • 2
  • 23
  • 39
0
votes
1 answer

obtainPermanentIDsForObjects not get called

I experimenting NSIncrementalStore and documentation says "First, the persistent store coordinator invokes obtainPermanentIDsForObjects:error: .. then, the coordinator invokes executeRequest:withContext:error: " In my case…
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
1 answer

NSIncrementalStore: Object's persistent store is not reachable from this NSManagedObjectContext's coordinator

I am trying to implement an NSIncrementalStore which will access a server over an RPC API. It needs to cache all the data locally, and so I have started by creating a NSIncrementalStore to use another core data stack which is used as the cache. So…
SimonB
  • 610
  • 8
  • 17
1
2