How do I update a progress bar in Cocoa during a long running loop?

后端 未结 4 533
悲&欢浪女
悲&欢浪女 2020-12-29 00:17

I\'ve got a while loop, that runs for many seconds and that\'s why I want to update a progress bar (NSProgressIndicator) during that process, but it updates onl

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 00:49

    You can try this code ..

    [progressbar setUsesThreadedAnimation:YES];
    

提交回复
热议问题