• 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 unselects on tab clicks...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTextView unselects on tab clicks...
      • From: Bill Cheeseman <email@hidden>
    • Re: NSTextView unselects on tab clicks...
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: CpMac
  • Next by Date: Application level key handling
  • Previous by thread: CpMac
  • Next by thread: Re: NSTextView unselects on tab clicks...
  • Index(es):
    • Date
    • Thread