NSTableView
s 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.
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.
- 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
- Ben Rhayader for the best answer on StackOverflow
See LICENSE file.