TIL: How to Make NSTextView Reject Newlines
Today I learned that a
NSWindow’s field editor cannot trivially be set to “single line mode.” A field editor is a
NSText subclass like
NSTextField is only a configurable widget that uses the field editor. How does the “single line mode” setting do what it does? I have no clue.
Continue reading …