rulerView(_:handleMouseDownWith:)
Adds a left tab marker to the ruler at the location clicked.
Declaration
func rulerView(_ ruler: NSRulerView, handleMouseDownWith event: NSEvent)Parameters
- ruler:
The ruler view sending the message.
- event:
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.