• 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
NSFile and NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFile and NSTask


  • Subject: NSFile and NSTask
  • From: Brent Smith <email@hidden>
  • Date: Thu, 27 Aug 2009 08:32:36 -0700

Hey all,

Ive been trying to think of a good way around my current solution for displaying contents of a text file.

Right now I basically run an NSTask on tail -f and that's about it. I plan on redoing this section of the code to allow the scroll view to go all the way back to the beginning of the document, and possibly adding in markers. I'm really curious if I should just parse through the file and add the contents into the text area/scrollview or should I build out an object and pass that object to a sub classed textview that displays the contents of the object. Am I still able to setup a notification set to tell me when new lines are added to the file?

I'm really worried about how efficient this method is and what will happen with very large files. Does anyone know how console.app accomplishes this? Are there any sample projects I can take a look at that do something similar?

Thanks in advance.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Xcode Analyze memory misunderstanding
  • Next by Date: Re: NSOperationQueue emptying
  • Previous by thread: Re: NSOperationQueue emptying
  • Next by thread: Making NSNumberFormatter empty-tolerant
  • Index(es):
    • Date
    • Thread