开发者

Progress bar/spinner not working in cocoa

I'm using an NSProgressIndicator and it only redraws after the main event loop. The spinner however never starts or stops. I am using the following code to start the progress indicator:

 [progressIndicator startAnimating];

It is also synthesized, and included properly in the .h and .m files. I have connected it in IB.

The code doesn't seem to work for the progress bar or the spin开发者_如何学Goner.


startAnimating isn't a method of NSProgressIndicator. Try:

[progressIndicator startAnimation:self];

Also check out setUsesThreadedAnimation:, which might help you out.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜