Christian Tietze

  • Blog Posts
  • Writing
  • Apps
  • Work With Me
  • Contact

TIL: How to Make NSTextView Reject Newlines

Jul 15th, 2016

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 NSTextView, but 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 …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • appkit
    • til
    • pasteboard

Contact • Newsletter • Blog Feed • /feeds • /now • /uses • @ctietze@mastodon.social • Privacy & Legal Information

Except where otherwise noted, content on this site is licensed CC BY-SA 4.0.

As an Amazon Associate I earn from qualifying purchases. This e.g. applies to links to Amazon.com.