• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subclassing NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Subclassing NSTableView
      • From: Norbert Heger <email@hidden>
  • Prev by Date: Re: Hiding a view
  • Next by Date: Re: Hiding a view
  • Previous by thread: Re: Opening URLs (Clarification)
  • Next by thread: Re: Subclassing NSTableView
  • Index(es):
    • Date
    • Thread