Returns whether the marker should be removed.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (BOOL)rulerView:(NSRuler View *)ruler shouldRemoveMarker:(NSRuler Marker *)marker;
Parameters
aRulerView
The ruler view sending the message.
aMarker
The marker to be removed.
Return Value
YES
if a
can be removed, NO
otherwise.
Discussion
Only markers that represent tab stops can be removed. This method returns YES
if a
represents an NSText
object, NO
otherwise. Because this method can be invoked repeatedly as the user drags a ruler marker, it returns that value immediately. If the change is allowed and the user actually removes the marker, the receiver is also sent a ruler
message.