NSTextView is Apple's main handler of AppKit's text system. It contains everything you need to create a text viewer/editor space in OS X (renamed macOS) applications.