Re: Core Data and REST
Re: Core Data and REST
- Subject: Re: Core Data and REST
- From: Andy Bell <email@hidden>
- Date: Mon, 30 Aug 2010 09:42:14 +0200
On Mon, Aug 30, 2010 at 5:14 AM, Chris Hanson <email@hidden> wrote:
> On Aug 28, 2010, at 10:00 AM, Andy Bell <email@hidden> wrote:
>
> > At a later date I want to use something like REST using JSON to be the
> backend to Core Data in the application. Is this going to be possible?
>
> Core Data only has API for creating your own atomic persistent stores -
> that is, persistent stores whose entire contents are read or written at
> once. This means it doesn't really make sense to talk about REST or JSON as
> a "back-end" to Core Data.
>
> What does make sense - and is quite common - is using a Core Data SQLite
> persistent store as a local cache for data on a server, or as a local
> database synchronized (via your own mechanism) with a server.
>
>
Thanks, that makes a lot of sense. So I can code and design the application
using Core Data and then later use the same local backend as a cache for an
online database using whatever protocol to synchronise the local database.
Andy
_______________________________________________
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