如何使用 NSProgressIndicator 作为 NSToolbarItem 的视图并将其显示在自定义表中?

发布于 2024-08-20 07:47:32 字数 273 浏览 4 评论 0原文

我在我的应用程序中设置了一个 NSToolbar 。它是在IB中创建的。其中一个工具栏项使用微调器样式的 NSProgressIndicator 作为其视图,其余的都是图像。

当显示工具栏的自定义表时,微调器不会显示在表中。

我最初认为这是因为微调器的 -displayedWhenStopped 设置为 NO。情况并非如此:如果我将其设置为“是”,则微调器在活动时会显示在工具栏中,但在停止时不会显示在工具栏或工作表中。

I have an NSToolbar set up in my app. It was created in IB. One of the toolbar items uses a spinner-style NSProgressIndicator as its view, the rest are images.

When the toolbar's customization sheet is showing, the spinner does not show in the sheet.

I initially thought that this was because the spinner's -displayedWhenStopped was set to NO. That's not the case: if I set it to YES, the spinner shows in the toolbar when active, but doesn't show in either the toolbar or the sheet when stopped.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文