NSTextView: Detecting when caret moves out of line
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.