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.
NSProgressIndicator Determinate although at a 100 is not full
-
07-10-2022 - |
Question
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
No correct solution
OTHER TIPS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow