NSProgressIndicator を作成し、アクションの実行中にのメソッドを使用NSStatusItem
-setView:
してメニューバー領域に表示すると、次のようになります。
めちゃくちゃな NSProgressIndicator の例 http://cl.ly/l9R/content
この境界線が表示される原因は何ですか?どうすれば削除できますか? 意図した結果は、コントロールが透明になることです。
私が使用しているコードは次のとおりです。
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];