Re: Sharing a persistent store between iOS and Mac

2011-08-26 Thread Fritz Anderson
On 25 Aug 2011, at 4:20 PM, Jens Alfke wrote: > I’m not qualified to answer the CoreData question, but it shouldn’t take that > long to read 12,000 words out of a text file. A fraction of a second. You may > have been doing it using some technique that added a lot of extra overhead, > perhaps f

Re: Sharing a persistent store between iOS and Mac

2011-08-26 Thread Fritz Anderson
Thanks for the lead. I thought I'd tried this before (pointing both at the same .momd was a desperate measure), but I'll try again. — F On 26 Aug 2011, at 9:19 AM, Heath Borders wrote: > I created a command-line build tool, and generated a sqlite coredata store > with it. Then I copy t

Re: Sharing a persistent store between iOS and Mac

2011-08-26 Thread Heath Borders
I've done something similar in two of my projects. However, I only shared the sqlite file, not the momd. I created a command-line build tool, and generated a sqlite coredata store with it. Then I copy the sqlite into my iOS project and add it to the Copy Bundle Resources phase. I do NOT copy the

Re: Sharing a persistent store between iOS and Mac

2011-08-25 Thread Jens Alfke
On Aug 25, 2011, at 1:30 PM, Fritz Anderson wrote: > My iOS app has to initialize a large, read-only dataset — a 12,000-word > vocabulary with definitions. In my early drafts, with 6000 words, I had it > parse a text file, but that took alarmingly long, and the watchdog timer > would probably

Re: Sharing a persistent store between iOS and Mac

2011-08-25 Thread Gerd Knops
On Aug 25, 2011, at 3:30 PM, Fritz Anderson wrote: > iOS 4.3 Simulator, Xcode 4.1, Lion 10.7.1 > > I'm having trouble generating a Core Data store and opening it in an iOS app > (in the Simulator so far). > > My iOS app has to initialize a large, read-only dataset — a 12,000-word > vocabulary