• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Continuously write content of log file to NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Continuously write content of log file to NSTextView
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: RE: Blocking Method Return
  • Next by Date: Re: Blocking Method Return
  • Previous by thread: Re: [OT] What happened to Stepstone?
  • Next by thread: Re: Continuously write content of log file to NSTextView
  • Index(es):
    • Date
    • Thread