Keeping a SQLite store in sync

  • I have two Core Data apps, both use the same data model and SQLite
    store.  They never run at the same time.  One is a "displayer" and it
    displays the data, the other is a "writer" that writes the data to the
    SQLite store.  When the displayer app starts, it tells the writer app
    to quit.

    However, I have noticed that when the displayer app displays the data
    after telling the writer to quit, the last few records of data written
    by the writer don't display unless I quit and start the displayer app
    again.  It's as if the all the data hasn't been written yet by the
    writer, and by the time I restart the displayer, all the data is
    finally there.  Is there a way to tell when all the data has been
    written to the store, or some other action so that the displayer app
    can display all the data?

    Thanks!
  • Never Mind - I found that the "writer" app had not fully quit prior to
    displaying the "displayer" app window.

    Begin forwarded message:

    > From: Kimo <willhulaformula...>
    > Date: December 13, 2007 8:21:25 PM PST
    > To: Cocoa Developers <cocoa-dev...>
    > Subject: Keeping a SQLite store in sync
    >
    > I have two Core Data apps, both use the same data model and SQLite
    > store.  They never run at the same time.  One is a "displayer" and
    > it displays the data, the other is a "writer" that writes the data
    > to the SQLite store.  When the displayer app starts, it tells the
    > writer app to quit.
    >
    > However, I have noticed that when the displayer app displays the
    > data after telling the writer to quit, the last few records of data
    > written by the writer don't display unless I quit and start the
    > displayer app again.  It's as if the all the data hasn't been
    > written yet by the writer, and by the time I restart the displayer,
    > all the data is finally there.  Is there a way to tell when all the
    > data has been written to the store, or some other action so that the
    > displayer app can display all the data?
    >
    > Thanks!
    >
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today