Skip to content
A simple Core Data like data stack for Cappuccino. It is designed for restful web service.
Objective-J JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
CoreData
Resources
doc
.gitignore
AppController.j
DataWindowController.j
DatePicker.j
DateValueTransformer.j
Info.plist
Jakefile
MyDocument.j
MyWindowController.j
README.md
Run.j
Stepper.j
index-debug.html
index.html
main.j

README.md

SimpleCappCore

A simple Core Data like data stack for Cappuccino. It is designed for restful web service, and works with Document Architecture.

It works as follows.

Load Model

[_managedObjectContext initWithModelURL:(CPString)modelURL]

Retrieve Data

[_managedObjectContext loadEntity:(CPString)anEntityName withPredicate:(CPPredicate)aPredicate withSortDescriptor:(CPSortDescriptor)aSortDescriptor options:(CPDictionary)options]

Data Binding

e.g. Bind a name CPTextField from CPWindowController to name property of Person Entity

[nameTextField bind:@"value" toObject:document withKeyPath:@"context.Person.selectedObject.name" options:nil]

Save Data

[_managedObjectContext saveEntity:(CPString)anEntityName]

Refactoring

[_managedObjectContext updateModelWithNewEntityDescriptor:(CPEntityDescriptor)newEntityDescriptor]
[_managedObjectContext updateModelByDeletingEntity:(CPString)anEntityName]

UML Diagrams

Class diagram

class diagram

Load Model Sequence diagram

load model sequence diagram

Retrieve Data Sequence diagram

retrieve data sequence diagram

Save Data Sequence diagram

save data sequence diagram

Update Model Sequence diagram

update model sequence diagram

Something went wrong with that request. Please try again.