Instance Method

rulerView:shouldRemoveMarker:

Requests permission for aRulerView to remove aMarker.

Declaration

- (BOOL)rulerView:(NSRulerView *)ruler shouldRemoveMarker:(NSRulerMarker *)marker;

Discussion

If the client returns YES the ruler view allows the user to remove the marker; if the client returns NO 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 removable 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).