Re: Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Nathan Kinsinger
On Sep 21, 2008, at 9:09 PM, Jason Coco wrote: On Sep 21, 2008, at 23:02 , Rick Mann wrote: On Sep 21, 2008, at 19:38:16, Jason Coco wrote: If you look at the top of the reference document, you will see a small table. The first row is the list of object references that the object inherits

Re: Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Jason Coco
On Sep 21, 2008, at 23:02 , Rick Mann wrote: On Sep 21, 2008, at 19:38:16, Jason Coco wrote: If you look at the top of the reference document, you will see a small table. The first row is the list of object references that the object inherits from. Clicking on any of these will take you t

Re: Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Rick Mann
On Sep 21, 2008, at 19:38:16, Jason Coco wrote: If you look at the top of the reference document, you will see a small table. The first row is the list of object references that the object inherits from. Clicking on any of these will take you to the reference for that superclass. The seco

Re: Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Jason Coco
On Sep 21, 2008, at 22:03 , Rick Mann wrote: Thanks! You're welcome :) On Sep 21, 2008, at 18:32:58, Jason Coco wrote: You would have to track whether or not the text view is at the end. I suggest looking at the documentation for NSTextView as well as the Scroll View Programming Guide:

Re: Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Rick Mann
Thanks! On Sep 21, 2008, at 18:32:58, Jason Coco wrote: You would have to track whether or not the text view is at the end. I suggest looking at the documentation for NSTextView as well as the Scroll View Programming Guide: Well, I was looking all through the NSTextView docs, and couldn't

Re: Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Erik Buck
To add to the answer: http://www.cocoabuilder.com/archive/message/cocoa/2005/9/30/147205 It's also worth noting that a search of the archives reveals literally 100 answers to this and similar questions. ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Re: Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Jason Coco
On Sep 21, 2008, at 21:05 , Rick Mann wrote: 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 d

Programmatically inserting text into NSTextView and scrolling

2008-09-21 Thread Rick Mann
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