Re: Auto-sized table cells, for macOS
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