Skip to content

Conversation

@jhammer
Copy link

@jhammer jhammer commented Jul 22, 2016

Since setColor calls willChangeValueForKey/didChangeValueForKey manually, we need to tell the KVO machinery to not automatically notify observers, otherwise observers get two notifications each time .color changes.

@jhammer
Copy link
Author

jhammer commented Jul 22, 2016

Sorry, this PR includes (by accident) more than just the KVO fix mentioned above. If you'd rather not take the four other changes, let me know and I can resubmit a more targeted PR. IMHO, the other changes are worth considering.

@danieljfarrell
Copy link
Owner

Hey, looks great viewing from my phone. I'm going to take a closer look and merge later on. Don't worry about the pull request, strictly speaking yes, but it's a small project I can't pretend it is that important.

@danieljfarrell
Copy link
Owner

Sorry for neglecting the pull request. There are been some KVO improvements and other improvements since this pull request. If you are interested in pushing some changes upstream then let me know otherwise I'll close this without merging. Sorry again for taking years to reply.

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.

2 participants