• 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: Roland King <email@hidden>
  • Date: Wed, 28 Jan 2015 00:48:29 +0800




>>
>> None of the above I’d expect. What constraints are there between the text view and the cell which contains it? I don’t remember there being any by default, which means at runtime some would be implicitly added, probably a fixed position and fixed width constraint if you hadn’t added some in yourself.
>>
>>
>
> 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.
_______________________________________________

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: Steve Mills <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>)

  • Prev by Date: Re: NSTableCellView Constraints?
  • 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