Editable-NSTableView-Header
Editable-NSTableView-Header copied to clipboard
Make NSTableView header cells editable with a double-click
NSTableView with editable column header cells

NSTableViews don't come with header rows that you can edit out of the box. This demo uses the NSWindow's field editor to start an editing session on top of a column header cell when you double click it.
Written and tested with Xcode 7.3 on Mac OS 10.11.4.
Usage
Open the project in Xcode to see how it works.
You can extract all components from TableView.swift and use them in your app. No external dependencies.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request
Credits
- Ben Rhayader for the best answer on StackOverflow
License
See LICENSE file.