开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜