Re: NSTextView unselects on tab clicks...
Re: NSTextView unselects on tab clicks...
- Subject: Re: NSTextView unselects on tab clicks...
- From: Douglas Davidson <email@hidden>
- Date: Thu, 28 Jun 2001 14:17:37 -0700
On Thursday, June 28, 2001, at 01:06 PM, email@hidden wrote:
I was thinking a solution would be to keep track of an NSRange, and
whenever anyone clicked a tab, i would reselect the NSRange.
Unfortunately I don't know what events to intercept to say
"selectionHasChanged. Do i need to touch on NSResponder stuff such as:
- (void)moveBackwardAndModifySelection:(id)sender;
- (void)moveForwardAndModifySelection:(id)sender;
No, you just have to listen for the
NSTextViewDidChangeSelectionNotification (if you are the textview's
delegate, you will get this as textViewDidChangeSelection:).
Douglas Davidson