• 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
Programmatically inserting text into NSTextView and scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically inserting text into NSTextView and scrolling


  • Subject: Programmatically inserting text into NSTextView and scrolling
  • From: Rick Mann <email@hidden>
  • Date: Sun, 21 Sep 2008 18:05:28 -0700

I want to implement a simple console for my app. As it generates data, it outputs a string representation of it to an NSTextView in a window. Already this was fairly cumbersome to do, but I got it working. The part that doesn't work is that it doesn't automatically scroll the text up after new text starts getting appended beyond the bottom of the window.

How can I get it to do this?

To complicate matters, how can I get it to do this only when the window was already scrolled to the bottom, and not when scrolled elsewhere (in the same fashion as Terminal.app)?

TIA,
--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Programmatically inserting text into NSTextView and scrolling
      • From: Jason Coco <email@hidden>
  • Prev by Date: Re: NsPredicateEditor
  • Next by Date: Re: Appropriateness of assign attribute and -fobj-gc-only
  • Previous by thread: Re: How do I get CAScrollLayer to draw its sublayers
  • Next by thread: Re: Programmatically inserting text into NSTextView and scrolling
  • Index(es):
    • Date
    • Thread