NSProgressIndicator not work in Objective C Storyboard

422 views Asked by At

I try to use NSProgressINdicator to show the process progress. However when I use on Cocoa Storyboard it's not working at all, even very simple set a value to show status of NSProgress Indicator. I check on internet and saw some NSProgressIndicator can work on NSView. However, here I want to run in Storyboard.

[ViewController.m]

- (IBAction)test:(id)sender {
_progressBar.maxValue = 100;
for(int i=0; i<100;i++)
{
    _progressBar.doubleValue = i;
    [NSThread sleepForTimeInterval:0.1];
}
}

Setting for progressBar: Setting for progressBar:

When I run it only show like this

0

There are 0 answers