Instance Property

markers

The receiver’s ruler markers to markers, removing any existing ruler markers and not consulting with the client view about the new markers.

Declaration

@property(copy) NSArray<NSRulerMarker *> *markers;

Discussion

markers can be nil or empty to remove all ruler markers. Raises an NSInternalInconsistencyException if markers is not nil and the receiver has no client view.

See Also

Adding and removing markers

- addMarker:

Adds aMarker to the receiver, without consulting the client view for approval.

- removeMarker:

Removes aMarker from the receiver, without consulting the client view for approval.

- trackMarker:withMouseEvent:

Tracks the mouse to add aMarker based on the initial mouse-down or mouse-dragged event theEvent.