进入全屏模式后,图层支持的 NSImageView 会损坏其图像
我有一个 NSImageView,在 IB 中打开了图层支持。 ImageView 的图像正在生成为“快速查看”预览。如果视图调整为更大的尺寸,我会生成新的预览。
一切正常,直到我的应用程序进入全屏模式。之后,我的代码获得新的快速查看预览并将其设置为 imageView。在 imageView 上调整图像大小时会损坏:它会在上方和下方创建相同的图像。 “下面”图像在调整大小时效果很好 - 这就是我想要的,但是“上面”图像不会调整大小 - 只是在调整大小时向上或向下移动并且具有非常奇怪的布局行为...
以下是一些屏幕截图,以便更好地理解图像损坏:
退出全屏后 - 问题消失) 如果我关闭此视图上的图层支持 - 问题也会消失)
似乎这是可可错误,但也许有人遇到了这样的问题。 提前致谢!
I have a NSImageView with turned on layer backing on it in IB.
ImageView's image is generating as Quick Look preview. If view is resizing to a bigger size I generate new preview.
All works fine until my App enters full screen mode. After that my code obtains new quick look preview and sets it to imageView. On imageView resizing image corrupts: it creates same image above and below. "Below" image works fine on resize - thats what I want, but "above" image doesn't resize - just goes up or down on resize and has very strange layout behavior...
Here are some screenshots for better understanding of image corrupting:
After exiting from fullscreen - problems disappear)
If I turn off layer backing on this view - problems also disappear)
Seems this is cocoa bug but maybe someone had such problem.
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论