Returns the actual character ranges to select.
Original signature is '- (NSArray *)textView:(NSTextView *)aTextView willChangeSelectionFromCharacterRanges:(NSArray *)oldSelectedCharRanges toCharacterRanges:(NSArray *)newSelectedCharRanges'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public NSArray TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesMessage( NSTextView aTextView, NSArray oldSelectedCharRanges, NSArray newSelectedCharRanges )
Public Function TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesMessage ( _ aTextView As NSTextView, _ oldSelectedCharRanges As NSArray, _ newSelectedCharRanges As NSArray _ ) As NSArray
public: NSArray^ TextViewWillChangeSelectionFromCharacterRangesToCharacterRangesMessage( NSTextView^ aTextView, NSArray^ oldSelectedCharRanges, NSArray^ newSelectedCharRanges )

- aTextView (NSTextView)
- The text view sending the message. This is the first text view in a series shared by a layout manager, not necessarily the text view displaying the selected text.
- oldSelectedCharRanges (NSArray)
- An array containing the original ranges of the selection. This must be a non-nil, non-empty array of objects responding to the NSValue rangeValue method, and in addition its elements must be sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
- newSelectedCharRanges (NSArray)
- An array containing the proposed character ranges for the new selection. This must be a non-nil, non-empty array of objects responding to the NSValue rangeValue method, and in addition its elements must be sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.

An array containing the actual character ranges for the new selection.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)