• 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: Auto-sized table cells, for macOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-sized table cells, for macOS


  • Subject: Re: Auto-sized table cells, for macOS
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 18 Mar 2017 00:21:30 -0700

On Mar 17, 2017, at 23:18 , Daryle Walker <email@hidden> wrote:
>
> The table isn’t using the new values, though.

There’s no direct relationship linking the intrinsic size to the row height. That’s kinda the point. Nothing is going to happen automatically. You have to detect when the row height might change (e.g. when the text is edited), and run autolayout on a prototype cell. Autolayout uses the intrinsic height to resize the cell view. That gives you the height, and then you must manually tell the table that the height for the row has changed.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Auto-sized table cells, for macOS (From: Daryle Walker <email@hidden>)
 >Re: Auto-sized table cells, for macOS (From: Quincey Morris <email@hidden>)
 >Re: Auto-sized table cells, for macOS (From: Daryle Walker <email@hidden>)
 >Re: Auto-sized table cells, for macOS (From: Quincey Morris <email@hidden>)
 >Re: Auto-sized table cells, for macOS (From: Daryle Walker <email@hidden>)

  • Prev by Date: Re: Auto-sized table cells, for macOS
  • Next by Date: Re: Calculating intrinsicContentSize for a NSTextField
  • Previous by thread: Re: Auto-sized table cells, for macOS
  • Next by thread: Getting the true rotation of a UIView layer
  • Index(es):
    • Date
    • Thread