Getting and Setting insertion point
Getting and Setting insertion point
- Subject: Getting and Setting insertion point
- From: Christian Mike <email@hidden>
- Date: Thu, 26 Jul 2001 08:03:07 -0500
I am implementing a scrolling command window for my application as an
NSScrollView. I would like the user to be able to move the cursor anywhere
in the window, modify the text that is there, and press the enter key to
"execute" whatever is on that line. In order to implement that, I need some
help locating the cursor.
1.) Is there any way to find out where the cursor is within the text stream
of the view?
2.) Is there any way to programmatically move the cursor back to the bottom
of the text stream so that all new output is appended to the end of
everything?
Thanks.
Michael Christian
Thomson multimedia Inc.