• 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
Varying row heights in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Varying row heights in NSTableView
      • From: Dan Wood <email@hidden>
    • Re: Varying row heights in NSTableView
      • From: Alykhan Jetha <email@hidden>
  • Prev by Date: Re: NSOpenPanel and special files
  • Next by Date: Re: Varying row heights in NSTableView
  • Previous by thread: Dragging, IB style.
  • Next by thread: Re: Varying row heights in NSTableView
  • Index(es):
    • Date
    • Thread