Re: Continuouss NSTextViewDidChangeSelectionNotification
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.