RobertGummesson / BuildTimeAnalyzer-for-Xcode

Build Time Analyzer for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Window disappears once minimized

deepumukundan opened this issue · comments

Once the window is minimized to dock or somehow gets hidden, it never comes back. The workaround is to quit and restart BuildTimeAnalyzer.

Happens on
OS: 10.11.6 OSX El Capitan
BuildTimeAnalyzer 1.0.2

That's odd. Works fine for me (on 10.12.1 OSX El Capitan). Will probably need help on debugging this.

Sure. Let me know how I can help. I do iOS dev, but I can give it a shot on the mac app. Will the console logs help? Or do you have pointers to any specific file or method where I can look at? This could be even an OS thing. I can give it a shot on my Sierra laptop.

I'm an iOS dev too and was lost half the time I developed this so no worries there. ;)

I'm on 10.11.6 and it works ok for me. The only oddity is that I can't command+tab back to it. I need to click on it in the tray to get it to come to the foreground again.

@normand1 - If you disable "Always in Front" under the window menu, that should work as expected again.

The app is always in front by default which is similar to how it worked when it was still an Xcode plug-in.

Sorry this fell off my Radar. So windows programming guide on macOS states we need to reset the level when window is hidden. https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/WinPanel/Concepts/WindowLevel.html

I will create a PR to set/reset this on view lifecycle changes. First ever mac app code change. Should be fun!