Skip to content

yichizhang/NSTextView-LineNumberView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f61257f · Oct 18, 2017

History

11 Commits
Sep 29, 2017
Sep 29, 2017
May 31, 2015
May 31, 2015
May 31, 2015
May 31, 2015

Repository files navigation

NSTextView+LineNumberView

Add line numbers to an instance of NSTextView.

Screenshot

Example

import Cocoa

// Your view controller
class ViewController: NSViewController {

    // The text view you wish to add line number view to
    @IBOutlet var mainTextView: NSTextView!
    
    override func viewDidLoad() {
        super.viewDidLoad()

        mainTextView.lnv_setUpLineNumberView()
    }
}

About

Add line numbers to an instance of NSTextView. The line number view is implemented as a subclass of NSRulerView.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages