Re: Adding Constraints in Code
Re: Adding Constraints in Code
- Subject: Re: Adding Constraints in Code
- From: Dave <email@hidden>
- Date: Tue, 15 Sep 2015 11:46:29 +0100
> On 14 Sep 2015, at 22:51, Jonathan Hull <email@hidden> wrote:
>
> It looks like these are the constraints inside of the detailView (that hold it’s sub-parts together). Doesn’t really tell us anything about the constraints holding the detailView itself in place...
>
> Thanks,
> Jon
No, not explicitly, I didn’t think I needed to since I can add LTWDetailYView’s to the exact same StackVIew and it works (e.g. LTWDetailYView stretches in X but LTWDetailXView doesn’t).
LTWDetailYView has a layout like this:
LTWDetailYView
NSStackView
Controls
Whereas LTWDetailXView is like this:
LTWDetailXView
Controls
Both views are added to the exact same NSStackView, the driving code is common to both views, just the internal details change as per the NIB and the Class Implementation.
I’d be happy to try this out, but I’m not sure of the correct constraints in the first place, so when I try it I’m not sure if it should work or not!
Cheers
Dave
_______________________________________________
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