Sent when a text view needs to determine if text in a specified range should be changed.
Original signature is '- (BOOL)textView:(NSTextView *)aTextView shouldChangeTextInRange:(NSRange)affectedCharRange replacementString:(NSString *)replacementString'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public bool TextViewShouldChangeTextInRangeReplacementStringMessage( NSTextView aTextView, NSRange affectedCharRange, NSString replacementString )
Public Function TextViewShouldChangeTextInRangeReplacementStringMessage ( _ aTextView As NSTextView, _ affectedCharRange As NSRange, _ replacementString As NSString _ ) As Boolean
public: bool TextViewShouldChangeTextInRangeReplacementStringMessage( NSTextView^ aTextView, NSRange affectedCharRange, NSString^ replacementString )
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.
- affectedCharRange (NSRange)
- The range of characters to be replaced.
- replacementString (NSString)
- The characters that will replace the characters in affectedCharRange; nil if only text attributes are being changed.
Return Value
YES to allow the replacement, or NO to reject the change.
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)