I have the XIB set for auto layout. However, after dragging an NSTableCellView 
into the NSTableHeader, IB’s size inspector (for the table cell view) reports 
that there are no constraints on the cell view. This is clearly the issue. 
Since I am learning Swift, cell-based views, and auto-layout all at the same 
time now, I am still a bit caught up in separating the wheat of knowledge from 
the chaff of information.

The Apple example for view-based tables, TableViewPlayground, does not use auto 
layout, and has the autoresizing mask for the cell view set to exactly track 
the enclosing view. I must learn how to do the same with auto layout. I am just 
surprised that IB didn’t set the right constraints. This may have been my fault 
because I converted to table to view-based by manually by removing all the 
cells and then changing its type directly, and then adding in the cell views. 
Maybe the manual conversion rather than starting with a new table set for view 
cells causes IB it omit a step. Still experimenting to find out.

Thanks,

Tom Wetmore


> On Jan 27, 2015, at 10:23 AM, Keary Suska <[email protected]> wrote:
> 
> Well, constraints are fully inspectable. What do they show?


_______________________________________________

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]

Reply via email to