Hi,
Am 14.11.2011 um 09:47 schrieb Sven A. Schmidt:
>> a) Is it really THAT complicated to create an instance of MyEntity and set
>> the attribute? I'm coming from the Rails/ActiveRecord world where this could
>> easily be done with a single line of code (including saving the instantiated
>> ob
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
Hi Timo,
> a) Is it really THAT complicated to create an instance of MyEntity and set
> the attribute? I'm coming from the Rails/ActiveRecord world where this could
> easily be done with a single line of code (including saving the instantiated
> object): MyEntity.new(:attribute1 => "Test").save
A small step ahead...
... the following code seems to create an instance of MyEntity and sets the
attribute 'attribute1' to the value 'Test'.
entityDesc = NSEntityDescription.new
entityDesc.setName("MyEntity")
att = NSAttributeDescription.new
att.setAttributeType(NSStringAttributeType)
att.setN
Hi List,
I've successfully created a core data entity with some attributes. I'm
displaying object in a NSTableView and I was able to add new instances by
calling the entities array controller add: action.
The last hour I tried to figure out how to add/create a core data entity in
ruby code wit