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

Re: Varying row heights in NSTableView


  • Subject: Re: Varying row heights in NSTableView
  • From: Dan Wood <email@hidden>
  • Date: Sat, 20 Oct 2001 09:38:20 -0700

I believe it may be possible through subclassing of a few methods. Check the archives (of this list or the macosx-dev) list from a couple of weeks ago -- somebody else was trying something similar, and there were a few possible methods in NSTableView that you could override. Maybe you could collaborate and then post your results! :-)


On Saturday, October 20, 2001, at 05:17 PM, Drew McCormack wrote:

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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev



--
Dan Wood
email@hidden
http://www.karelia.com/
http://www.bikealameda.org/
Mac OS X Developer: Online Resume: http://www.karelia.com/resume.html


References: 
 >Varying row heights in NSTableView (From: Drew McCormack <email@hidden>)

  • Prev by Date: Re: Varying row heights in NSTableView
  • Next by Date: Re: CORBA with Mac OS X
  • Previous by thread: Re: Varying row heights in NSTableView
  • Next by thread: networking advice.
  • Index(es):
    • Date
    • Thread