Instance Method

rulerView:handleMouseDown:

Adds a left tab marker to the ruler at the location clicked.

Declaration

- (void)rulerView:(NSRulerView *)ruler handleMouseDown:(NSEvent *)event;

Parameters

aRulerView

The ruler view sending the message.

theEvent

The mouse down event.

Discussion

A subclass can override this method to provide other behavior, such as creating guidelines. This method is invoked once with theEvent when the user first clicks the ruler area of aRulerView, as described in the NSRulerView class specification.

See Also

NSRulerView Client Methods

- rulerView:didMoveMarker:

Modifies the paragraph style of the paragraphs containing the selection to record the new location of the marker.

- rulerView:willMoveMarker:toLocation:

Returns a potentially modified location to which the marker should be moved.

- rulerView:shouldMoveMarker:

Returns whether the marker should be moved.

- rulerView:didRemoveMarker:

Modifies the paragraph style of the paragraphs containing the selection—if possible—by removing the specified marker.

- rulerView:shouldRemoveMarker:

Returns whether the marker should be removed.

- rulerView:didAddMarker:

Modifies the paragraph style of the paragraphs containing the selection to accommodate a new marker.

- rulerView:shouldAddMarker:

Returns whether a new marker can be added.

- rulerView:willAddMarker:atLocation:

Returns a potentially modified location to which the marker should be added.