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

NSTableCellView Constraints?


  • Subject: NSTableCellView Constraints?
  • From: Thomas Wetmore <email@hidden>
  • Date: Tue, 27 Jan 2015 09:32:38 -0500

I have a multi-column table that I am converting from an ObjC/cell-based implementation to a Swift/view-based implementation. The cells are text, so I am now using a vanilla text-only NSTableCellView in each column.

When the application launches, I can shrink the columns just fine — the text shrinks as it should.

BUT, when I widen the columns the text widens until it reaches the width of the INITIAL LAUNCH TIME WIDTH, and widens no further, no matter how wide I make the columns.

There must be a constraint problem, and I have been playing around with them for awhile, but no joy yet. Googling has not turned up a similar issue. I would have assumed that when I dragged the NSTableCellView into the NSTableColumn using IB, that IB would have established the constraints between the cell view and the column view properly. Apparently not. Is this a known Swift/Cocoa bug or IB bug? Does anyone know the proper workaround? I am running Xcode 6.2 beta 4.

Thanks.

Tom Wetmore, Chief Bottle Washer
DeadEnds Software
_______________________________________________

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>
    • Re: NSTableCellView Constraints?
      • From: Keary Suska <email@hidden>
  • Prev by Date: [RESOLVED] Re: What's the right way to use UIActivityIndicatorView? After it's stopped
  • Next by Date: Re: Detecting Managed Object Property Change From Undo Redo
  • Previous by thread: [RESOLVED] Re: What's the right way to use UIActivityIndicatorView? After it's stopped
  • Next by thread: Re: NSTableCellView Constraints?
  • Index(es):
    • Date
    • Thread