How to use NSProgressIndicator as a representation of an NSToolbarItem element and show it on the settings sheet?

I have NSToolbar installed in my application. It was created at IB. One toolbar item uses the NSProgressIndicator style as the style, and the rest use images.

When the toolbar settings sheet is displayed, the counter does not appear on the sheet.

At first, I thought this happened because spinner -displayedWhenStopped was set to NO . This is not so: if I set it to YES, the spinner will appear on the toolbar when it is active, but it will not appear on the toolbar or on the sheet when it stops.

+4
source share

Source: https://habr.com/ru/post/1300224/


All Articles