Skip to content
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

Update window layout to work on macOS 10.14 (Mojave) #50

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

robinstewart
Copy link
Contributor

It took me a while to figure out what was going on in the view hierarchy, causing the clock to not get displayed on Mojave. Ideally I'd like to move to an approach that puts the clock in a more standard location in the view hierarchy that would be more robust to OS updates (such as contentView). But after experimenting for a while, I don't have any clear idea of how to do that while maintaining the visual design and behavior.

So instead I was able to adapt the approach for Mojave by simply making the clock view a sibling of the close button.

I also simplified a few lines of code and added comments.

@iossid
Copy link

iossid commented Jan 25, 2019

@robinstewart Found an issue, please take a look at the image. Nice try though, I'm playing with the Window thingie too.
wechatimg14056

@robinstewart
Copy link
Contributor Author

@iossid When I built against the Mojave frameworks, the window UI didn't show up for me at all, so this pull request just tweaks how the clock views are inserted into the window so that the app works again.

Yes, the transparency issue remains, but I haven't found a fix for that and I figured it could be a separate patch when someone does figure that out.

@iossid
Copy link

iossid commented Jan 28, 2019

@robinstewart Yeah, indeed.

@robinstewart
Copy link
Contributor Author

I realize now my description wasn't clear — my intention with this pull request was not to fix all of the bugs when running on Mojave, but rather to fix the specific, major problem that when the app is built using Xcode in Mojave, the timer window is completely blank:

image

So this pull request is a necessary first step for any further bug fixes or development.

@karbassi
Copy link
Collaborator

karbassi commented Apr 9, 2020

@robinstewart Yes, it's completely broken right now. Do you think you could take a look at it?

@robinstewart
Copy link
Contributor Author

@karbassi Yes, this pull request already contains the fix! It just needs to be merged in.

(I changed the way the clock UI is inserted into the window view hierarchy, which will hopefully be more robust to future OS updates as well.)

@karbassi
Copy link
Collaborator

Works for me. Merging!

@karbassi karbassi merged commit a6cca9f into michaelvillar:master Apr 10, 2020
@robinstewart robinstewart deleted the mojave branch April 10, 2020 20:45
@karbassi karbassi added this to the 1.5 milestone Apr 11, 2020
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.

None yet

3 participants