• 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
Keeping track of new user selections in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keeping track of new user selections in NSTextView


  • Subject: Keeping track of new user selections in NSTextView
  • From: email@hidden
  • Date: Sat, 1 Jul 2006 12:53:04 +0200 (CEST)
  • Importance: Normal

    Hello all,

 I'm looking for a  method in NSTextView
that gets triggered exactly when the user selects a portion of text
(and it gets colored blue ...). I thought
at first that the delegate method

 -(void) textViewDidChangeSelection:(NSNotification*)aNotification

 was what I needed, but after toying with it in the debugger I saw
little difference with -textDidChange: -textViewDidChangeSelection is
called just about every time
the user modifies the text. It seems that there always is
a "default" selection even when the user has actually selected nothing. So
where is
the method I need ?


             Ewan



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Keeping track of new user selections in NSTextView
      • From: Antonio Nunes <email@hidden>
  • Next by Date: Re: Keeping track of new user selections in NSTextView
  • Next by thread: Re: Keeping track of new user selections in NSTextView
  • Index(es):
    • Date
    • Thread