Continuously write content of log file to NSTextView
Continuously write content of log file to NSTextView
- Subject: Continuously write content of log file to NSTextView
- From: Stephan Ruggiero <email@hidden>
- Date: Fri, 2 Dec 2005 15:20:09 +0100
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden