LineNumbersView

class LineNumbersView: NSRulerView

The line numbers view for the editor

Override draw

  • Draw a background a a stroke on the right of the NSRulerView

    Declaration

    Swift

    override func draw(_ dirtyRect: NSRect)

    Parameters

    dirtyRect

    The current rect of the editor

Override drawHashMarksAndLabels