• 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: I need a suggestion for making a "console" window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I need a suggestion for making a "console" window


  • Subject: Re: I need a suggestion for making a "console" window
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 26 Apr 2004 01:27:24 -0400

On Apr 25, 2004, at 10:55 PM, Allan Odgaard wrote:

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...


well, no, not out of the box, but again, it's just an attributed string subclass.

when you add X number of lines, remove X number of lines from the beginning and note that the text storage has changed (edited:range:changeInLength:).
_______________________________________________
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.


References: 
 >I need a suggestion for making a "console" window (From: Michael Heinz <email@hidden>)
 >Re: I need a suggestion for making a "console" window (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: I need a suggestion for making a "console" window
  • Next by Date: Re: Standard User Defaults - Setting initial values
  • Previous by thread: Re: I need a suggestion for making a "console" window
  • Next by thread: Re: I need a suggestion for making a "console" window
  • Index(es):
    • Date
    • Thread