There used to be documentation on writing custom accessors and setters in core data, the NSManageObject docs mentions them, and links to the Core Data Programming Guide.
However, looking through them, I can't see any reference to actually writing them like you used to eg:
- (void) setName:(NSString *)name
{
[self willChangeValueForKey:@"name"];
[self setPrimitiveName:name];
[self didChangeValueForKey:@"name"];
}And you'd have to declare the setPrimitiveXXXX property in the interface, leading to method definition warnings too.
Is that functionality being phased out? Or an ommision on the docs?
I'm actually going through some old code and trying to remove them where I can in favour of some cleaner code, but sometimes it's just easier.