Subclassing NSTableView
Subclassing NSTableView
- Subject: Subclassing NSTableView
- From: Drew McCormack <email@hidden>
- Date: Thu, 25 Oct 2001 16:05:33 +0200
I've been trying to subclass NSTableView so that I can have rows of
different heights. I have overrided the layout methods to achieve this
(eg rectOfRow), and things seem to go OK. The rows will resize to
display all the text in each cell, even when there is less in one column
than in another. However, it only works if all rows are exactly the same
height. If they are different heights, things go nuts.
I am starting to think that the implementation of the class may not be
flexible enough to do what I want to do. I suspect there may be parts of
the base class implementation that do not rely wholly on the layout
methods, but also make the assumption that all rows are the same
height. Can anyone at Apple tell me if this is right? It would really
save me a lot of effort if I knew from the beginning that I was doomed
to failure.
Thanks in advance,
Drew McCormack