Custom setter methods in Core-Data
According to the documentation, it’d be: – (void) setFoo:(NSObject *)inFoo { [self willChangeValueForKey:@”foo”]; [self setPrimitiveValue:inFoo forKey:@”foo”]; [self didChangeValueForKey:@”foo”]; } This is, of course, ignoring the fact that NSManagedObjects only want NSNumbers, NSDates, NSDatas, and NSStrings as attributes. However, this might not be the best approach. Since you want something to happen when the value of … Read more