>>
>> 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 (Cocoa-dev@lists.apple.com)
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 arch...@mail-archive.com