NSTextView unselects on tab clicks...
NSTextView unselects on tab clicks...
- Subject: NSTextView unselects on tab clicks...
- From: email@hidden
- Date: Thu, 28 Jun 2001 13:06:00 -0700
I have a window with an NSTextView and a tabbed area to tab through
different controls. When the user types in text, selects it, and clicks
a tab, the text becomes unselected. Its important that the user can
keep text selected while switching between different tabs, since those
tabs all modify the selected text, and its very annoying to have to keep
selecting the same text repeatedly.
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;
etc....
or is there a better way?
Thanks,
MIke Margolis