Go to the Attributes Inspector of the Progress Indicator and set up as shown in the picture below:
See code below:
@synthesize progressBar;
- (IBAction)startAction:(id)sender {
[progressBar setHidden:NO];
[progressBar setIndeterminate:YES];
[progressBar setUsesThreadedAnimation:YES];
[progressBar startAnimation:nil];
}