[MacRuby-devel] Create new Core Data Instances
Sean Mateus
seanlilmateus at googlemail.com
Mon Nov 14 04:00:08 PST 2011
Hi Timo,
I've found something more like ActiveRecord; it's a
framework https://github.com/magicalpanda/MagicalRecord!
everything is written in Objective-C, but you can use it with MacRuby! you
get syntax like:
person = Person...;
MRCoreDataAction.saveDataInBackgroundWithBlock -> localContext do
localPerson = person.inContext localContext
localPerson.firstName = "Chuck"
localPerson.lastName = "Smith"
end
but nevertheless, you should try to understand how CoreData really work!
Mateus
greetings from Köln
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20111114/cc7c5533/attachment.html>
More information about the MacRuby-devel
mailing list