Instance Method

rulerView:shouldAddMarker:

Requests permission for aRulerView to add aMarker, an NSRulerMarker being dragged onto the ruler by the user.

Declaration

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

Discussion

If the client returns YES the ruler view accepts the new marker and begins tracking its movement; if the client returns NO the ruler view refuses the new marker.

See Also