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

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


References: 
 >NSTextView unselects on tab clicks... (From: email@hidden)

  • Prev by Date: Re: retain, copy, release, autorelease...leak
  • Next by Date: NSStringAdditions drawAtPoint
  • Previous by thread: NSTextView unselects on tab clicks...
  • Next by thread: Re: NSTextView unselects on tab clicks...
  • Index(es):
    • Date
    • Thread