This is what happens when I create an NSProgressIndicator and use NSStatusItem
's -setView:
method to display it in the menubar area while I'm performing an action:
What causes this border to be displayed, and how can I remove it? The intended result is that the control be transparent.
Here's the code I'm using:
NSProgressIndicator *progressIndicator = [[NSProgressIndicator alloc] init];
[progressIndicator setBezeled: NO];
[progressIndicator setStyle: NSProgressIndicatorSpinningStyle];
[progressIndicator setControlSize: NSSmallControlSize];
[progressIndicator sizeToFit];
[progressIndicator startAnimation: self];
[statusItem setView: progressIndicator]; // statusItem is an NSStatusItem instance
...
[statusItem setView: nil];
[progressIndicator stopAnimation: self];
[progressIndicator release];