Re: NSTableCellView Constraints?
Re: NSTableCellView Constraints?
- Subject: Re: NSTableCellView Constraints?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 28 Jan 2015 11:34:20 -0600
On Tue, Jan 27, 2015, at 07:25 PM, Thomas Wetmore wrote:
> I defer to the experts. But for me view-based tables no longer work 'as
> expected’ (how they worked with cell-based tables). That is, one now has
> to explicitly add constraints in order to get the text in cells to widen
> and shrink properly as the user widens and shrinks column headers.
You can use a regular NSControl subclass as the cell view of a table
view. It does not need to be embedded in an NSTableCellView. Then you
don't need to specify any constraints at all.
> To me,
> a non expert, this is disconcerting when first encountered, and seems
> sloppy, and like something overlooked. It is just one more of thousands
> of little irksome details that I must fight may way through to learning
> in order to get a good looking Mac app. But thanks to this list I can add
> constraints in order to get that expected behavior.
It sounds like a good enhancement request to file here might be: "When
converting a table view from cell-based to view-based, Interface Builder
should automatically add constraints that fill the cell views."
--Kyle Sluder
_______________________________________________
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