Beginning with Core Data may not be the easiest task ever. Here's the small wrapper that could make your experience a lot easier and a way more fun, especially if you're already familiar with the Active Model (Rails).
I always imainged how it would be to have the Active Model brought to the iOS.
At least, the syntax is a lot more sexy than the
In the end, it's not hard at all. The wrapper can be found on https://github.com/supermarin/Objective-Record
1 2 3
Let's find our John
All the people in database:
1 2 3
When the XCode 4.4 gets released, some new Objective-C literals will come in. Then you'll be able to pass a readable dictionary(hash) in the finder method:
e.g. all the people that are 18 years old
Or a more specific one:
1 2 3 4
The same goes for the creation
Of course, you can still use all the Core Data stuff and syntax.
For some more details visit the https://github.com/supermarin/Objective-Record.