Varying row heights in NSTableView
Varying row heights in NSTableView
- Subject: Varying row heights in NSTableView
- From: Drew McCormack <email@hidden>
- Date: Sat, 20 Oct 2001 17:17:51 -0700
Is there any way to have different sized rows in an NSTableView?
I have a feeling the answer is no.
What I want to be able to do seems trivial enough, but I've looked
everywhere for a solution, and haven't had any success. I basically want
an NSTableView which contains text, where every cell is editable such
that it grows to fit the text when the user hits enter (instead of
ending editing), and where the cells in each row are the same size, but
the rows are different sizes (heights). The size of a row is simply
large enough that all text entered in the cells of the row is visible.
I thought this would be something really common, but alas.
Am I looking at a large scale operation to build my own custom class? If
so, what would be the best approach? Could I perhaps build a class which
has one NSMatrix for each row? If I did that, is there any way I could
keep the nice NSTableView column headers?
Drew McCormack