• 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: NSTableCellView Constraints?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSTableCellView Constraints? (From: Thomas Wetmore <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Roland King <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Thomas Wetmore <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Roland King <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Steve Mills <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Thomas Wetmore <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Roland King <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Kyle Sluder <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Roland King <email@hidden>)
 >Re: NSTableCellView Constraints? (From: Thomas Wetmore <email@hidden>)

  • Prev by Date: Re: NSTableCellView Constraints?
  • Next by Date: Re: Torrential logging output from AVPlayer
  • Previous by thread: Re: NSTableCellView Constraints?
  • Next by thread: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
  • Index(es):
    • Date
    • Thread