small medium large xlarge

Back to: All Forums  Core Data
22 Jun 2009, 12:41
Olivier Mergault (1 post)

I am trying to make an application on the document-based model with two persistent stores : one in the bundle, one (in) the document (questions and answers… questions are the same for all the documents…). It seems it’s not so easy to do with core data.

Do you think I’ll find some kind of ‘how-to’ in your book ?

Thank you

27 Jul 2009, 06:07
Marcus S. Zarra (284 posts)

It is very simple to do. Since you are using a document model, let the @NSPersistentDocument@ handle the store that is being saved (the answers) and then construct a second, probably application wide, Core Data stack that loads the read-only store (the questions). You will need to write the stack code for the second one by hand but you can pretty much lift most of the code straight out of the book.

You must be logged in to comment