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.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSArray TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges( NSTextView aTextView, NSArray oldSelectedCharRanges, NSArray newSelectedCharRanges )
Public Overridable Function TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges ( _ aTextView As NSTextView, _ oldSelectedCharRanges As NSArray, _ newSelectedCharRanges As NSArray _ ) As NSArray
public: virtual NSArray^ TextViewWillChangeSelectionFromCharacterRangesToCharacterRanges( NSTextView^ aTextView, NSArray^ oldSelectedCharRanges, NSArray^ newSelectedCharRanges )
Parameters
- 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.
Return Value
An array containing the actual character ranges for the new selection.
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)