简体   繁体   中英

NSMatrix on NSTableColumn

Is it possible to set an NSMatrix as the cell of a NSTableColumn?. If possible, how should I do it?

Thanks in advance.

First, you can't do this easily because table columns expect an NSCell to use as their data cell (so they can draw the column's contents at a given row). NSMatrix is a similar control that uses a prototype cell to draw many times.

Second, there was a tutorial out there (can't find it any more) that showed how to use NSViews as NSTableView rows. Hint: if you have access to the latest pre-release API, you will have a pleasant surprise.

Third, "multiple columns of text on a cell" in a table sounds like a perfect job for... multiple text columns.

What exactly are you really trying to do? The more specific you get, the better answers / advice we can give. :-)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM