Hello,
In one of my apps I want to display the content of a text file (a log file) in an NSTextView and continuously update the NSTextView as new lines are added to the file. Basically, it should be something like the Console.app is doing.
I read about wrapping a "tail -f" command and piping the output of the task into the NSTextView and successfully implemented that, but as I have several log files to display simultaneously it gets a little bit difficult to deal with all those tail tasks...
As Apple is not using tail for their Console.app there has to be a way to get this running by using Obj-C only, but I still did not find the solution.
Maybe someone could help me out with this?
Thank you very much!
Best regards,
Stephan
In one of my apps I want to display the content of a text file (a log file) in an NSTextView and continuously update the NSTextView as new lines are added to the file. Basically, it should be something like the Console.app is doing.
I read about wrapping a "tail -f" command and piping the output of the task into the NSTextView and successfully implemented that, but as I have several log files to display simultaneously it gets a little bit difficult to deal with all those tail tasks...
As Apple is not using tail for their Console.app there has to be a way to get this running by using Obj-C only, but I still did not find the solution.
Maybe someone could help me out with this?
Thank you very much!
Best regards,
Stephan