Re: displaying huge log files
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