显示工作表时的动画(Cocoa)
当我在 Cocoa 中显示表格,特别是动画时,我遇到了一个问题。如何显示带有或不带有漂亮动画的工作表(纯 NSWindow/NSPanel)?它会自动为 NSSavePanel/NSOpenPanel 执行此操作,但我无法让漂亮的动画适用于我在 Interface Builder 中创建的标准 NSWindow/NSPanel 工作表。 (当我说动画时,请单击 Safari 首选项中“安全”选项卡中的“显示 Cookie”按钮)
谢谢, 丽贝卡。
I had a question when showing sheets in Cocoa and particularly, the animations. How do I show a sheet (plain NSWindow/NSPanel) with and without the nice animation? It does this automatically for NSSavePanel/NSOpenPanel, but I can't get the nice animation working for a standard NSWindow/NSPanel sheet I create in Interface Builder. (When I say animation, click on the "Show Cookies" button in the 'Security' tab in the Safari preferences)
Thanks,
Rebecca.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无法控制是否有动画:工作表始终显示动画。唯一可以改变的是动画的风格:
您可以通过将窗口大小调整为小于或大于工作表来进行一些测试。
You cannot control whether there is an animation or not: sheets are always shown with an animation. The only thing that can change is the style of animation:
You can make some tests, by resizing the window to be smaller or larger than the sheet.