• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data : Synchronizing objects with SQLite file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data : Synchronizing objects with SQLite file


  • Subject: Re: Core Data : Synchronizing objects with SQLite file
  • From: Fritz Anderson <email@hidden>
  • Date: Mon, 10 Feb 2014 14:01:20 -0600

On 7 Feb 2014, at 3:58 PM, Jerry Krinock <email@hidden> wrote:

> Executing an ‘update’ query with another program upon the SQLite file, I changed a different attribute of the problem object.  Upon re-executing the fetch request in lldb, the problem object was now a fault.  I then sent [myObject foo], which still returned nil, but this apparently caused the data to be “faulted in”, because a subsequent fetch request in lldb no longer showed a fault, but now showed all of the old data.  That is, foo=nil still, and the different attribute was still at its old value.
>
> Do I misunderstand how this stuff is supposed to work?

Am I correct that you routinely use your Core Data store as a straight SQLite database? Not just peeking with a browser or the sqlite3 command line?

If I do understand you correctly, that’s a “voids your warranty” situation. The Core Data schema is proprietary, and accessing it directly may have… unanticipated effects, no matter how confident you are in your reverse-engineering.

My strategy (off the top of my head):

1. Work out a way not to use SQLite directly.
2. Write a command-line tool that recovers your data, one way or another.
3. Write it to a clean CD store.
4. Serve and enjoy.

	— F


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Core Data : Synchronizing objects with SQLite file
      • From: Jerry Krinock <email@hidden>
References: 
 >Core Data : Synchronizing objects with SQLite file (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Getting QuickLook to work with NSDocument
  • Next by Date: Re: -hitTest:withEvent: called twice?
  • Previous by thread: Core Data : Synchronizing objects with SQLite file
  • Next by thread: Re: Core Data : Synchronizing objects with SQLite file
  • Index(es):
    • Date
    • Thread