rulerView(_:didRemove:)
Modifies the paragraph style of the paragraphs containing the selection—if possible—by removing the specified marker.
Declaration
func rulerView(_ ruler: NSRulerView, didRemove marker: NSRulerMarker)Parameters
- ruler:
The ruler view sending the message.
- marker:
The marker that was removed.
Discussion
This method records the change by invoking didChangeText() after removing the marker.
NSTextView checks for permission to move or remove a tab stop in its rulerView(_:shouldMove:) method, which invokes shouldChangeText(in:replacementString:) to send out the proper request and notifications, and only invokes this method if permission is granted.