核心动画不适用于 Leopard,适用于 Snow Leopard
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这可能应该出现在 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.您可能需要针对 10.5 SDK 进行构建。
You probably need to build against the 10.5 SDK.
这可能只是 Leopard 中的一个错误,他们在 Snow Leopard 中修复了这个错误。
It could just be a bug in Leopard that they fixed in Snow Leopard.