core-data
core-data copied to clipboard
Avoid duplicating keys in will/did method calls.
Add accessingValueForKey() that takes a key and a block and wraps the block in willAccessValueForKey()/didAccessValueForKey(); same for willChangeValueForKey()/didChangeValueForKey().
This allows writing:
var foo {
return accessingValueForKey(Keys.Foo) { primitiveFoo }
}