MonobjcMonobjc Documented Class Library
NSTextViewDidChangeSelectionNotification Field
NamespacesMonobjc.AppKitNSTextViewNSTextViewDidChangeSelectionNotification

Posted when the selected range of characters changes.

NSTextView posts this notification whenever setSelectedRange:affinity:stillSelecting: is invoked, either directly or through the many methods (mouseDown:, selectAll:, and so on) that invoke it indirectly. When the user is selecting text, this notification is posted only once, at the end of the selection operation. The text view's delegate receives a textViewDidChangeSelection: message when this notification is posted.

The notification object is the notifying text view. The userInfo dictionary contains the following information:

KeyValue@"NSOldSelectedCharacterRange"An NSValue object containing an NSRange structure with the originally selected range.

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static readonly NSString NSTextViewDidChangeSelectionNotification
Public Shared ReadOnly NSTextViewDidChangeSelectionNotification As NSString
public:
static initonly NSString^ NSTextViewDidChangeSelectionNotification
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)