jeudi 5 mars 2015

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 (iOS-internal) class NSSQLCore and [store isKindOfClass: NSIncrementalStore.class] returns NO.


Is it possible to obtain from iOS an instance of an SQLLite Store that can be accessed as an NSIncrementalStore?


I'd like to add caching to a custom NSIncrementalStore and employ a wrapped SQLite Store for that purpose, if possible (straightforward).


Aucun commentaire:

Enregistrer un commentaire