• 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
Re: Continuously write content of log file to NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continuously write content of log file to NSTextView


  • Subject: Re: Continuously write content of log file to NSTextView
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 2 Dec 2005 08:27:57 -0800

On Dec 2, 2005, at 6:20 AM, Stephan Ruggiero wrote:
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?

Apple isn't using tail for Console.app because spawning processes is just a terribly huge amount of overhead that is easily avoided through other mechanisms.

Have a look at the kqueue mechanism. Uli K. has quite conveniently wrapped the low level kqueue API with a nice set of Objective-C classes. A google search for "UKKQueue" should reveal all.

b.bum


_______________________________________________
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
References: 
 >Continuously write content of log file to NSTextView (From: Stephan Ruggiero <email@hidden>)

  • Prev by Date: Re: Blocking Method Return
  • Next by Date: Re: more than one plist in a file.
  • Previous by thread: Continuously write content of log file to NSTextView
  • Next by thread: Re: Continuously write content of log file to NSTextView
  • Index(es):
    • Date
    • Thread