Graying out an NSWindow's content

眉间皱痕 提交于 2019-12-05 18:31:00

I'd use a child window. Set its content view to a plain black view (hopefully with status and progress information in subviews), and its alpha value to the desired fade-out, and add it as a child window of the window whose content you want to fade out.

Azeem.Butt

I'd teach the views how to draw themselves in a disabled state, but there are other suggestions here:

How can I darken everything displayed in a single NSView?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!