Re: NSTableCellView Constraints?
Re: NSTableCellView Constraints?
- Subject: Re: NSTableCellView Constraints?
- From: Roland King <email@hidden>
- Date: Wed, 28 Jan 2015 08:48:15 +0800
> On 28 Jan 2015, at 08:35, Kyle Sluder <email@hidden> 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).
>
> --Kyle Sluder
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 autolayout is ‘in flux’ but because that’s how Xcode works these days, and much better for it it is too.
_______________________________________________
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