• 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: displaying huge log files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying huge log files


  • Subject: Re: displaying huge log files
  • From: Nick Zitzmann <email@hidden>
  • Date: Sat, 29 Nov 2008 15:23:34 -0700


On Nov 29, 2008, at 5:39 AM, Mudi Dandan wrote:

Is it possible to to display a memory mapped file in an NSTextView

Of course.

and in such way that if the file grows the NSTextView updates.


Yes, though you'd have to update the text view manually. Keep in mind that:

1. NSTextStorage will crash if you try to load in more than a few gigabytes of data, even on 64-bit (this is expected in 32-bit, but it's a bug in 64-bit Leopard), and

2. Even if it doesn't crash, NSTextView gets really, really slow when you load in a lot of data at once. Given a sufficiently large document, all that glyph generation and layout will take much longer than a smaller document. You're best off doing what Console.app does and only showing a small subset of the log.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

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


  • Follow-Ups:
    • Re: displaying huge log files
      • From: Andrew Farmer <email@hidden>
References: 
 >displaying huge log files (From: Mudi Dandan <email@hidden>)

  • Prev by Date: Re: Text blurred in application
  • Next by Date: Re: Text blurred in application
  • Previous by thread: displaying huge log files
  • Next by thread: Re: displaying huge log files
  • Index(es):
    • Date
    • Thread