문제

I have an NSProgressIndicator which I use in the following way:

double ProgressLength = 1/(double)[[fh componentsSeparatedByString:@"\n"] count]*100;
NSProgressIndicator *MyIndicator = _ProgressIndicator;

for (NSString *line in [fh componentsSeparatedByString:@"\n"]) {
    [MyIndicator incrementBy:ProgressLength];
     // Some other staff
}
[MyIndicator setDoubleValue:100];
[MyIndicator display];

When the loops ends [MyIndicator doubleValue] = 99.99999 so I thought that this was the reason why the bar was not 100% full, so I specifically set it to 100, but still the bar is not full.

Any thoughts???

thanks, Alex

올바른 솔루션이 없습니다

다른 팁

NSProgressIndicator has a maxValue property. If you set it to a higher value the bar will not be full at 100. This can be done in code and in Interface Builder.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top