Instance Method


Requests permission for aRulerView to remove aMarker.


func rulerView(_ ruler: NSRulerView, shouldRemove marker: NSRulerMarker) -> Bool


If the client returns true the ruler view allows the user to remove the marker; if the client returns false the marker is kept pinned to the ruler’s baseline. This message is sent as many times as needed while the user drags the marker.

The user’s ability to remove a marker is typically set on the marker itself, using NSRulerMarker’s isRemovable method. You should use this client view method only when the marker’s removability can vary while the user drags it (for example, if the user must press the Shift key to remove a marker).