Instance Method

rulerView:didMoveMarker:

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

Declaration

- (void)rulerView:(NSRulerView *)ruler didMoveMarker:(NSRulerMarker *)marker;

Parameters

aRulerView

The ruler view sending the message.

aMarker

The marker that was moved.

Discussion

This method records the change by invoking didChangeText after moving the marker.

NSTextView checks for permission to make the change in its rulerView:shouldMoveMarker: method, which invokes shouldChangeTextInRange:replacementString: to send out the proper request and notifications, and only invokes this method if permission is granted.

See Also

NSRulerView Client Methods

- 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.

- rulerView:handleMouseDown:

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