Posted when the selected range of characters changes.
- macOS 10.0+
NSText posts this notification whenever
set is invoked, either directly or through the many methods (
mouse, 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
text message when this notification is posted.
The notification object is the notifying text view. The
user dictionary contains the following information:
Key Value An
NSValue object containing an
NSRange structure with the originally selected range.