开发者

Progress bar/spinner not working in cocoa

开发者 https://www.devze.com 2023-01-14 05:43 出处:网络
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:

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

精彩评论

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

关注公众号