• 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: Thomas Wetmore <email@hidden>
  • Date: Tue, 27 Jan 2015 12:50:40 -0500

> On Jan 27, 2015, at 12:06 PM, Steve Mills <email@hidden> wrote:
>
> On Jan 27, 2015, at 10:48:29, Roland King <email@hidden> wrote:
>>
>>>
>>> Using IB to check the constraints on the NSTextField within the NSTableCellView, IB states: “The selected views have no constraints. At build time, explicit left, top, width, and height constraints will be generated for the view.”   If this is true, then the constraints that are generated are preventing the text field from getting wider than the launch time width of the column.
>>
>> So there you go. Exactly as I said there are no constraints fixing the text field to the cell so it's getting a fixed width and height and position at runtime. So add some. Don't worry about the cell itself, the table view will sort that out, just constrain your text view to pin to the edges of the cell so it expands as the column does.
>
> I was also just messing around with a table view and adding constraints. I selected each NSTextField inside the table view cells, clicked the Pin button at the bottom, and turned on the left and right constraints, leaving the default values of 2 and 3). Now the cells resize as I resize the columns and as I resize the window (because the table view is pinned to the 4 sides of the window).

Thanks. This worked for me also. I believe IB should set up these constraints by default, but that things are still in a state of flux.

Tom Wetmore
_______________________________________________

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


  • Follow-Ups:
    • Re: NSTableCellView Constraints?
      • From: Roland King <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>)

  • Prev by Date: NSString stringByAbbreviatingWithTildeInPath and Sandboxing
  • Next by Date: Re: Detecting Managed Object Property Change From Undo Redo
  • Previous by thread: Re: NSTableCellView Constraints?
  • Next by thread: Re: NSTableCellView Constraints?
  • Index(es):
    • Date
    • Thread