Instance Method

rulerView:shouldMoveMarker:

Requests permission for aRulerView to move aMarker.

Declaration

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

Discussion

If the client returns YES the ruler view allows the user to move the marker; if the client returns NO the marker doesn’t move.

The user’s ability to move a marker is typically set on the marker itself, using NSRulerMarker’s movable method. You should use this client view method only when the marker’s movability can vary depending on a variable condition (for example, if graphic items can be locked down to prevent them from being inadvertently moved).

See Also