Instance Method

addMarker(_:)

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

Declaration

func addMarker(_ marker: NSRulerMarker)

Discussion

Raises an NSInternalInconsistencyException if the receiver has no client view.

See Also

Adding and removing markers

var markers: [NSRulerMarker]?

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

func removeMarker(NSRulerMarker)

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

func trackMarker(NSRulerMarker, withMouseEvent: NSEvent) -> Bool

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