• 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
Question regarding parsing files and NSTask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question regarding parsing files and NSTask


  • Subject: Question regarding parsing files and NSTask
  • From: Brent Smith <email@hidden>
  • Date: Wed, 26 Aug 2009 13:16:15 -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.

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: How to draw over all other windows
  • Next by Date: Re: Autoscroll NSTableView
  • Previous by thread: How to draw over all other windows
  • Next by thread: Problem building for 10.4 on 10.6
  • Index(es):
    • Date
    • Thread