LineNumbersView

public class LineNumbersView: NSRulerView

The line numbers view for the editor

Init

  • Init the NSRulerView

    Declaration

    Swift

    required override public init(scrollView: NSScrollView?, orientation: NSRulerView.Orientation)

    Parameters

    scrollView

    The current NSScrollView

    orientation

    The orientation of the NSRulerView

  • Init the NSRulerView

    Declaration

    Swift

    required public init(coder: NSCoder)

    Parameters

    coder

    The NSCoder

Override functions

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

    Declaration

    Swift

    override public func draw(_ dirtyRect: NSRect)

    Parameters

    dirtyRect

    The current rect of the editor

  • Draw marks and labels in the current NSRulerView

    Declaration

    Swift

    override public func drawHashMarksAndLabels(in rect: NSRect)

    Parameters

    rect

    The rect of the current NSRulerView