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

I need a suggestion for making a "console" window


  • Subject: I need a suggestion for making a "console" window
  • From: Michael Heinz <email@hidden>
  • Date: Sun, 25 Apr 2004 22:25:28 -0400

I'm working on an app that has a textview for displaying debug, warning and error messages. Currently, each message is added by getting the text from the view, appending the new text and setting the text to the textview again.

As you might imagine this isn't very efficient, especially once the amount of text becomes large. So, my question is "is there a more efficient way to do this?"

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?

2) Is there an efficient way to use, say, a ring buffer of fixed length, or a fixed # of lines, and display that?
_______________________________________________
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.


  • Follow-Ups:
    • Re: I need a suggestion for making a "console" window
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: [SOLVED] Re: NSToolbarItem setImage problems
  • Next by Date: Standard User Defaults - Setting initial values
  • Previous by thread: [SOLVED] Re: NSToolbarItem setImage problems
  • Next by thread: Re: I need a suggestion for making a "console" window
  • Index(es):
    • Date
    • Thread