TextViewLineNumbers icon indicating copy to clipboard operation
TextViewLineNumbers copied to clipboard

Implementation of NSTextView with line numbers

NSTextView with Line Numbers

This sample project shows how to create a NSTextView with line numbers using a NSRulerView subclass.

The main focus of this project is to provide a simple way of displaying line numbers with good performance also for thousands of lines. The implementation was extracted from the great CotEditor project - I only converted it to Swift.

Contact

Matthias Hochgatterer

Github: https://github.com/brutella

Twitter: https://twitter.com/brutella

License

The project is available under the GNU General Public License. See the LICENSE file for more info.