Re: displaying huge log files

2008-12-01 Thread Benjamin Stiglitz
On Sun, Nov 30, 2008 at 12:48:26AM -0800, Andrew Farmer wrote: > On 29 Nov 08, at 14:23, Nick Zitzmann wrote: >> 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. > > With one caveat: When creating a memory mappin

Re: displaying huge log files

2008-11-30 Thread Andrew Farmer
On 29 Nov 08, at 14:23, Nick Zitzmann wrote: 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. With one caveat: When creating a memory mapping (by using mmap), you have to specify the length of the region you want

Re: displaying huge log files

2008-11-29 Thread Nick Zitzmann
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 w

displaying huge log files

2008-11-29 Thread Mudi Dandan
Hi Guys, I'm developing an application that generates logs (FTP transcript) that could grow really big. I want to display this log in simple textview so that the user can examine it. My question : Is it possible to to display a memory mapped file in an NSTextView and in such way that if t