• 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 and REST
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and REST


  • Subject: Re: Core Data and REST
  • From: Fritz Anderson <email@hidden>
  • Date: Sat, 28 Aug 2010 17:46:49 -0500

On 28 Aug 2010, at 12:00 PM, Andy Bell wrote:

> I am designing an application which will use Core Data with a local persistent store.  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?  Will I have many issues moving to the remote backend from the local?

It's possible so long as you're willing to keep the whole store in memory, and read and write it all at once — which doesn't sound consistent with the REST architecture you're thinking about. See NSAtomicStore, the "programming topics" article at
<http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/AtomicStore_Concepts/>
and the sample at
<http://developer.apple.com/samplecode/HTMLStore/>.

"It is important though to note that the atomic store API does not provide support for integration with client-server relational databases or similar SQL-based stores." That's not pertinent to your question, but I don't want people finding this message in the archives to get their hopes up.

	— 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

References: 
 >Core Data and REST (From: Andy Bell <email@hidden>)

  • Prev by Date: Re: NSCoding between iOS and Mac OS X
  • Next by Date: Re: CGLayer resolution on iPhone with Retina display
  • Previous by thread: Core Data and REST
  • Next by thread: Re: Core Data and REST
  • Index(es):
    • Date
    • Thread