Cocoa: how to insert a button inside a table cell?

Look at the top bar of the Xcode window.

Here is a list of tables with checkboxes in one of the columns. This is the interface I want to do.

So how do you insert a button into an NSTableView cell?

+4
source share
1 answer

You need to set the column data cell to NSButtonCell. In IB, you can simply drag and drop the check box (not the check box!) Into the column to assign it.

+4
source

Source: https://habr.com/ru/post/1305330/


All Articles