問題タブ [nstablecellview]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
556 参照

macos - 行ごとに 2 つのカスタム テーブル セル ビューが交互に表示される NSTableView (MacOS)

次のように、2 つの異なるカスタム セル ビューを各行に交互に配置したいビューベースの NSTableView を 1 列だけ持っています。

奇数行: OddRowNumberCellView. 偶数行: EvenRowNumberCellView.

Natasha の高評価の回答UITableview with more than One Custom Cells with Swiftには iOS 向けのソリューションがありますが、これは Attributes Inspector の Dynamic Prototypes 設定に依存します。これは MacOS では利用できない機能です。

Macでこれを行う方法を知っている人はいますか?(私は macOS Sierra 10.12.4 を使用しています。)