> On Jan 27, 2015, at 7:48 PM, Roland King <r...@rols.org> wrote:
> 
>> On 28 Jan 2015, at 08:35, Kyle Sluder <k...@ksluder.com> wrote:
>> 
>> On Tue, Jan 27, 2015, at 05:34 PM, Roland King wrote:
>>> No I don’t think so. I can’t think of a case IB adds constraints to
>>> anything automatically at this point.
>> 
>> If you do not specify any constraints on a view, at compile time Xcode 6
>> will install leading, top, width, and height constraints to mimic the
>> behavior you get with auto layout disabled. This makes it possible to
>> compile, debug, and test your app before you've set up all your
>> constraints. Without this feature, all your underspecified views get
>> resized to (0,0,0,0).
> 
> Yes I pointed that out a few mails back up the thread. 
> 
> let me re-phrase to be clearer. IB no-longer adds (and attempts to maintain, 
> and refuses to allow you to remove) explicit constraints when you add views 
> to your layout as it used to back in Xcode 4. Hence I don’t think the lack of 
> automatically added explicit constraints between a dragged-in NSTableCellView 
> and its subviews is because auto layout is ‘in flux’ but because that’s how 
> Xcode works these days, and much better for it it is too.

I defer to the experts. But for me view-based tables no longer work 'as 
expected’ (how they worked with cell-based tables). That is, one now has to 
explicitly add constraints in order to get the text in cells to widen and 
shrink properly as the user widens and shrinks column headers. To me, a non 
expert, this is disconcerting when first encountered, and seems sloppy, and 
like something overlooked. It is just one more of thousands of little irksome 
details that I must fight may way through to learning in order to get a good 
looking Mac app. But thanks to this list I can add constraints in order to get 
that expected behavior.

Tom Wetmore


_______________________________________________

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

Reply via email to