FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Avoid duplicating keys in will/did method calls. by dillof · Pull Request #22 · objcio/core-data · GitHub

Avoid duplicating keys in will/did method calls. - #22

Open
dillof wants to merge 1 commit into
objcio:masterfrom
dillof:master
Open

Avoid duplicating keys in will/did method calls.#22
dillof wants to merge 1 commit into
objcio:masterfrom
dillof:master

Conversation

dillof commented May 25, 2016

Copy link
Copy Markdown

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 }
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL