• 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: Continuouss NSTextViewDidChangeSelectionNotification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continuouss NSTextViewDidChangeSelectionNotification


  • Subject: Re: Continuouss NSTextViewDidChangeSelectionNotification
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 12 May 2004 11:01:39 -0700

On May 12, 2004, at 9:48 AM, Mark Alldritt wrote:

I'm using NSTextViewDidChangeSelectionNotification to track changes in the
user's selection. The problem is that this notification is delivered when
the user completes change the text selection (hence DidChange in the name).
I would like to receive some sort of notification continually as the user
drags within the text. I can't find an obvious notification or delegate for
this. Is there a way to do this?

You can provide your own notification by subclassing NSTextView and overriding setSelectedRange:affinity:stillSelecting: to call the super method, then send your custom notification.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Continuouss NSTextViewDidChangeSelectionNotification (From: Mark Alldritt <email@hidden>)

  • Prev by Date: Re: CFShow in Cocoa
  • Next by Date: Re: File's owner and delegate
  • Previous by thread: Continuouss NSTextViewDidChangeSelectionNotification
  • Next by thread: undo oddness
  • Index(es):
    • Date
    • Thread