NSWindow - Deactivate on Hide - isVisible

I have an NSWindow with "Hide on deactivate" set to TRUE.

When my application loses focus, the window disappears, however testing with "isVisible" gives TRUE. What's happening?

+3
source share
1 answer

isVisible == YES means that your window is still present on the screen or reduced to Dock.

Well, I've never used this option before ... But if you really want to hide the window when your application loses focus, execute the -applicationDidResignActive:method NSApplicationDelegateand call -orderOut:for your window.

This will give you a stable result.

+3
source

All Articles