Programmatically inserting text into NSTextView and scrolling
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