• 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
Getting and Setting insertion point
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: How to make a plugin?
  • Next by Date: Memory limitation of NSScrollView
  • Previous by thread: Whence comes the "Disclosure Triangle" in Cocoa?
  • Next by thread: Memory limitation of NSScrollView
  • Index(es):
    • Date
    • Thread