核心动画不适用于 Leopard,适用于 Snow Leopard

发布于 2024-08-27 05:38:51 字数 240 浏览 6 评论 0原文

我使用 NSImageViews 的动画代理来制作动画。在 Snow Leopard 上测试我的应用程序时,一切都按预期进行。然而,在 Leopard 上,所有动画都不起作用。此外,无论是否通过动画代理,NSImageViews 似乎都没有使我在它们上设置的 alphaValue 生效。我能让它们消失的唯一方法是将它们的图像设置为零。奇怪的是,这在 Snow Leopard 中一切正常,但在 Leopard 10.5.8 上不起作用。知道为什么会发生这种情况吗?

I animate NSImageViews using its animator proxy. While testing my application on Snow Leopard, everything works as expected. However, on Leopard, none of the animations are functioning. In addition, NSImageViews don't seem to take into effect the alphaValue I set on them, whether through the animator proxy or not. The only way I can get them to disappear is by setting their image to nil. What is weird is that this all works fine in Snow Leopard, but does not work on Leopard 10.5.8. Any idea on why this may be occurring?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

久伴你 2024-09-03 05:38:51

这可能应该出现在 AppKit 发行说明中。在 10.5 中,-[NSView alphaValue] 仅对图层支持的视图有任何影响。此限制在 10.6 中取消。

This probably should have been in the AppKit release notes. In 10.5, -[NSView alphaValue] only has any effect for layer backed views. This limitation is lifted in 10.6.

┼── 2024-09-03 05:38:51

您可能需要针对 10.5 SDK 进行构建。

You probably need to build against the 10.5 SDK.

梦罢 2024-09-03 05:38:51

这可能只是 Leopard 中的一个错误,他们在 Snow Leopard 中修复了这个错误。

It could just be a bug in Leopard that they fixed in Snow Leopard.

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