Is it possible to set an NSMatrix as the cell 开发者_StackOverflow中文版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. :-)
精彩评论