Cocoa: how to nest a button inside a Table View cell?
Take a look at the top pane of the Xcode window.
There's a table list, with checkboxes in one of the columns. That's the interface I want to do.
So how do you nest a but开发者_如何学Goton in an NSTableView cell?
You need to set the data cell of the column to an NSButtonCell. In IB you can simply drag a checkbox cell (not a checkbox button!) to the column to assign it.
精彩评论