Skip to content

Conversation

@dillof
Copy link

@dillof dillof commented May 25, 2016

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 }
}

Add accessingValueForKey() that takes a key and a block and wraps the block in willAccessValueForKey()/didAccessValueForKey(); same for will/didChangeValueForKey.

This allows writing:

var foo {
    return accessingValueForKey(Keys.Foo) { primitiveFoo }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant