Re: split views, best practices for 10.8?
Re: split views, best practices for 10.8?
- Subject: Re: split views, best practices for 10.8?
- From: Kyle Sluder <email@hidden>
- Date: Sat, 08 Dec 2012 23:43:05 -0800
On Sat, Dec 8, 2012, at 04:19 PM, Chuck Soper wrote:
> On 11/27/12 6:33 PM, "Chuck Soper" <email@hidden> wrote:
> >On 11/27/12 2:11 PM, "Peter Ammon" <email@hidden> wrote:
> >
> >>Hi Chuck,
> >>
> >>Autolayout works well with NSSplitView in 10.8.
> >
> >Perfect. Thanks for that confirmation.
>
> Does that mean that in 10.8 (and not 10.7) that it's fine to call
> setTranslatesAutoresizingMaskIntoConstraints:NO for subviews of
> NSSplitView?
It is never(*) correct to call
-setTranslatesAutoresizingMaskIntoConstraints: on a view for which you
do not control the superview's implementation.
On 10.8, NSSplitView should be calling
-setTranslatesAutoresizingMaskIntoConstraints: already.
> And, that NSSplitView won't add constraints that conflict with my
> subviews?
This should be the case.
>
> The "Cocoa Auto Layout Guide" says not to call
> setTranslatesAutoresizingMaskIntoConstraints:NO for subviews of
> NSSplitView, but I think that's for 10.7 and the statement is no longer
> true for 10.8. Is that correct?
See above.
--Kyle Sluder
_______________________________________________
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