I need to write a custom setter method for a field (we\'ll call it foo) in my subclass of NSManagedObject. foo is defined in the data
foo
NSManagedObject
I think there is a slight mistake: use
[self setPrimitiveValue:inFoo forKey:@"foo"];
instead of
[self setPrimitiveFoo:inFoo];
this works for me.