• 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: Alykhan Jetha <email@hidden>
  • Date: Sat, 20 Oct 2001 12:18:35 -0400

Hi Drew,

I'm looking for the same type of solution. I haven't been able to find a clean solution but I think there is a way (just haven't had time to try it).

Look at the following method in TableView:

- (NSRect)rectOfRow:(int)rowIndex

and a few other related methods.
I was thinking of subclassing TableView and overriding this method. It's not super high priority for me right now, so I probably won't get to it for a month of so.


Please let me know if you figure something out.

./aj


On Saturday, October 20, 2001, at 08: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


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

  • Prev by Date: Varying row heights in NSTableView
  • Next by Date: Re: Varying row heights in NSTableView
  • Previous by thread: Varying row heights in NSTableView
  • Next by thread: Re: Varying row heights in NSTableView
  • Index(es):
    • Date
    • Thread