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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com