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