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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to