rangeForUserCharacterAttributeChange
The range of characters affected by an action method that changes character (not paragraph) attributes.
Declaration
var rangeForUserCharacterAttributeChange: NSRange { get }Discussion
The range of characters affected by an action method that changes character (not paragraph) attributes, such as the NSText action method changeFont(_:). For rich text this range is typically the range of the selection. For plain text this range is the entire contents of the receiver. If the receiver isn’t editable or doesn’t use the Font panel, the range has a location of NSNotFound.
See Also
Related Documentation
Customizing subclass behaviors
updateFontPanel()updateRuler()acceptableDragTypesupdateDragTypeRegistration()selectionRange(forProposedRange:granularity:)rangesForUserCharacterAttributeChangerangeForUserParagraphAttributeChangerangesForUserParagraphAttributeChangerangeForUserTextChangerangesForUserTextChangeshouldChangeText(in:replacementString:)shouldChangeText(inRanges:replacementStrings:)didChangeText()smartInsertDeleteEnabledsmartDeleteRange(forProposedRange:)