4

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.

Fraser Speirs
  • 4,642
  • 3
  • 21
  • 15
  • I definitely can't reproduce this — if displayedWhenStopped is true, it's displayed in both places whether active or inactive. The only thing I can think of is it's being programmatically hidden when inactive, but I know you'd know the effect that would have... – Brock Batsell Feb 03 '10 at 20:41
  • I concur with Brock, I can't reproduce it either, it works fine for me. – Rob Keniger Feb 04 '10 at 02:03
  • @Fraser: Do you have any code you could post for setting up the progress indicator besides what you've done in IB? I can't reproduce it, like the fellow commentors before me. – sudo rm -rf Jan 04 '12 at 06:50
  • 1
    IIRC, the toolbar item in the customization sheet is actually just an archived object. When it's dragged off the sheet to an actual toolbar at runtime, a new object is created based on the archive. Thus, the item in the toolbar and on the customization sheet are not the same. Make sure in *IB* that the properties for the item on the customization panel are correct to enable the spinner to display always. – Richard Stahl Jan 19 '12 at 04:50

0 Answers0