开发者

Cocoa: how to nest a button inside a Table View cell?

开发者 https://www.devze.com 2022-12-25 01:41 出处:网络
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.

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

精彩评论

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