I can use NSTask
to grab the output of stdout
, create a string and put it into an NSTextField
without issue, although how would I make the output behave like print "\r$i"
?
This perl script demonstrates the output:
$|++;
for ($i=0; $i<1000000; $i++) {
print "\r$i";
}
print "\n";
Is it possible to take stdout from an NSTask and output in Objective-C like this?