views:

217

answers:

2

I was going through cappuccino. I did not find any details about the data(model) layer. The same exists in Sproutcore. Am I missing something?

+2  A: 

In SproutCore the model layer provides full object-relational mapping and manages things like storage, state, querying and back-end retrieval of the data. Cappuccino does not provide a model layer in the same sense, so from what I've seen (e.g. http://github.com/suitmymind/cappuccinocasts-episodes/tree/master/009) you would instead directly send requests to your back-end and then load the results into objects and handle state, querying, etc. yourself.

bruz
+1  A: 

Like bruz says, Cappuccino is probably more freeform at the data layer than SproutCore. That said, you could plug in Nicholas Small's CPActiveRecord or Raphael Bartolome's Core Data Cappuccino to get a more automated model experience which also manages server connectivity in various ways.

Alexander Ljungberg