显示工作表时的动画(Cocoa)

发布于 2024-08-17 19:57:56 字数 240 浏览 7 评论 0原文

当我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自此以后,行同陌路 2024-08-24 19:57:56

您无法控制是否有动画:工作表始终显示动画。唯一可以改变的是动画的风格:

  • 如果工作表比窗口小,它看起来会向下滑动
  • 如果工作表比窗口大,它会在向下滑动的同时变大(以梯形形状)。

您可以通过将窗口大小调整为小于或大于工作表来进行一些测试。

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:

  • If the sheet is smaller than the window, it appears to slide down
  • If the sheet is larger than the window, it grows (in a trapeze shape) while sliding down.

You can make some tests, by resizing the window to be smaller or larger than the sheet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文