Cocoa如何为Mac应用程序制作窗口3D变换效果?
大家好,我对 cocoa 3D 变换不熟悉,我想让一个窗口在我的 mac 应用程序中单击工具栏按钮时进行立方体变换。但是我在Apple参考文档中发现只能让视图进行立方体变换,但是窗口怎么样?
Hey all, I am not familiar to the cocoa 3D transform, I wanna to make a window do a cube transform when a toolbar button clicked in my mac app. but what I found in the Apple Reference Doc just can make a view do the cube transform, but how about the window?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不太漂亮,但您可能想看看这个 博客文章。基本上,看起来您想要将 NSWindow 渲染到另一个假装为主窗口的 NSWindow 中,将其用于动画,然后在动画完成后将其丢弃。那里还有一个代码示例。
This is not pretty, but you might want to take a look at this blog post. Basically, looks like you're going to want to render your NSWindow into another NSWindow that pretends to be the main window, use that for animations, and then dispose of it once the animation is done. There's a code sample on there as well.