Using CoreData as disconnected cache (Populating CoreData programmatically)
Using CoreData as disconnected cache (Populating CoreData programmatically)
- Subject: Using CoreData as disconnected cache (Populating CoreData programmatically)
- From: Andrew Satori <email@hidden>
- Date: Wed, 11 Oct 2006 12:22:45 -0400
Alright, so I've been working on a project that needs to deal with
disconnected updates and synchronization.
What I've got is a large server based database with potentially
hundreds of concurrent users. That side is done, and is relatively
easy.
Now I have a project to modify one of the applications to be able to
cache a copy of relevant records to be disconnected and taken offsite
to a location where remote access of any form will be 'iffy' at
best. I've got a theory, but I'm having trouble implementing it.
What I would like to do is have the 'client' contact the server and
create a cache of the server data in CoreData, then use CoreData for
the application, then upon return sync the CoreData files back to the
server. I see this as the 'application', the import (with it's
select criteria based upon files to be used that day), and return to
the office sync, which is to be non-desctructive, and additive only.
So in order to test this, I've started with the import, and I'm
already stuck. I cannot seem to find any examples of how to add data
to a coredata model programmatically. I can find CoreData with
bindings examples everywhere, but nothing about doing this in code,
and I'm looking for some direction to look for more information on
the subject.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden