-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed crash if color picker left open when control is deallocated. #7
base: master
Are you sure you want to change the base?
Conversation
For example when switching to another view. The color picker is now automatically closed, which is a better experience, and avoids the crash.
Removing the notification observer is correct, but we should only reset the panel's target if |
There's no getter for the |
Actually, not sure about the weak linking. |
Oops, it really only is a setter without a getter. How strange. I seems to be weak, just ran a quick test and it didn't increase the retain count of my object (it if weren't, |
…cated to not clear target & action.
Strange indeed. I agree that it seems to be weak, so I've removed those two lines. Thanks for the feedback. |
The mouse event doesn't work inside a table view. Not sure why, but using a gesture recognizer works around the issue.
Hmmm mouse events don't work inside the table view. Would making the table view the first responder solve this problem? |
Other mouse events work if you set the highlight mode to None. But the -mouseDown: doesn't work, hence my workaround. |
Isn't this already solved by merging #10? Or is there something that still needs to be fixed? |
I will take a look. There are merge conflict. |
Fixes an issue on High Sierra where the color became white every time the control is loaded, as the default color was changing the app's settings before it could populate the color well.
Sorry, did I accidentally trigger a pull request? I was fixing an issue on my fork of the project: sending the action when setting the default color was overriding my app's settings on High Sierra. See my branch for my changes. |
For example when switching to another view. The color picker is now
automatically closed, which is a better experience, and avoids the
crash.