On Jan 27, 2015, at 10:48:29, Roland King <[email protected]> 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). -- Steve Mills Drummer, Mac geek _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
