Christian Tietze

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

The Surprising Intricacies of Editing Parts of NSTableView

May 25th, 2016

Teaser image

Editing NSTableView cells with a double-click is the default behavior. I wrote about how to make the column header cells editable already. But in order to figure out how to end an active editing session when the user hits ⌘S to save the document, I grew more and more disappointed by the day.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • nstableview
    • editing
    • field-editor

How to Edit NSTableView Headers with a Double-Click

Apr 11th, 2016

Teaser image

When you work with view-based NSTableViews, cells by default contain a NSTextField. You can edit cell contents with them. The headers are not designed to be edited, though. You don’t have much control over the column headings from Interface Builder. So you have to build this yourself.

Continue reading …

  • ∞ Permalink
  • • Comments
  • • Tags:
    • nstableview
    • cocoa
    • editing
    • field-editor

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.