Re: I need a suggestion for making a "console" window
Re: I need a suggestion for making a "console" window
- Subject: Re: I need a suggestion for making a "console" window
- From: Allan Odgaard <email@hidden>
- Date: Mon, 26 Apr 2004 04:55:22 +0200
On 26. Apr 2004, at 4:25, Michael Heinz wrote:
1) I couldn't find a method that would allow me to just append text to
the existing contents of the textview. Is there a way to do that?
I use moveToEndOfDocument: and then insertText: (both NSResponder
methods) -- but it'll move the insertion point.
2) Is there an efficient way to use, say, a ring buffer of fixed
length, or a fixed # of lines, and display that?
Not "out of the box". An NSTextView uses NSTextStorage to store the
actual text, so it might be possible to hack this class, but I fear
you'll be in for quite a lot of work, as a text storage also knows
about layout managers...
** Cocoa FAQ: <
http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.