• 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
Can NSTableView have different sized rows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can NSTableView have different sized rows?


  • Subject: Can NSTableView have different sized rows?
  • From: Darrin Cardani <email@hidden>
  • Date: Sun, 5 Oct 2003 14:54:15 -0500

I have an NSTableView which allows the user to enter text into cells in a particular column. The text will likely have multiple lines per cell. I see that if the user presses "option-return" it gives them another line to type in within the same cell. However, the row is still only 1 line high. I can change all the rows to be 2 or more lines high, but what I would like is to be able to have each row be only as tall as it needs to be so that if there's only 1 line of text, it's only 1 line high, but if there are 2 lines of text, it's 2 lines high, etc. Is that possible? The docs have lots of info about changing the size of columns, but not rows (other than -setRowHeight:, which sets the height of all rows to the same thing).

Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Can NSTableView have different sized rows?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Software Incompatibilities - Please Help!
  • Next by Date: Font Manager Problem
  • Previous by thread: Re: Software Incompatibilities - Please Help!
  • Next by thread: Re: Can NSTableView have different sized rows?
  • Index(es):
    • Date
    • Thread