• 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
NSTextView: Detecting when caret moves out of line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView: Detecting when caret moves out of line


  • Subject: NSTextView: Detecting when caret moves out of line
  • From: Jens Bauer <email@hidden>
  • Date: Thu, 27 Nov 2003 20:39:45 +0100

Hi all,

How do I correctly detect if the cursor/caret/insertion point has moved away from a line in a NSTextView ?

I need to perform some operations on the text, but only when the cursor (eg. not the mouse-cursor) moves away from the line. This could include (but isn't limited to):
* Pressing Return
* Pressing Enter
* Pressing Arrow Up
* Pressing Arrow Down
* Pressing Arrow Left (in the left side of the line)
* Pressing Arrow Right (in the right side of the line)
* Pressing Page Up
* Pressing Page Down
* Pressing Page Home
* Pressing Page End
* Various modifiers combined with the arrow keys
* Clicking the mouse-button to reposition the caret or highlight text
* Clicking another window (so the focus is lost)


I'd be very grateful, if I can get this problem solved. :)


Love,
Jens
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSTextView: Detecting when caret moves out of line
      • From: Satoshi Matsumoto <email@hidden>
  • Prev by Date: Saving Strategy
  • Next by Date: How to get the size of a paper
  • Previous by thread: Re: Saving Strategy
  • Next by thread: Re: NSTextView: Detecting when caret moves out of line
  • Index(es):
    • Date
    • Thread