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: Chuck Soper <email@hidden>
- Date: Sat, 08 Dec 2012 16:19:51 -0800
- Thread-topic: split views, best practices for 10.8?
Hi Peter,
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?
And, that NSSplitView won't add constraints that conflict with my subviews?
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?
I had been attempting to use constraints in a subview of NSTableCellView
(and call setTranslatesAutoresizingMaskIntoConstraints:NO). I was getting
lots of "Unable to simultaneously satisfy constraints" exceptions.
NSTableView was adding NSAutoresizingMaskLayoutConstraint instances that
were conflicting with my subviews. After I read the "Adopting Auto Layout"
section in "Cocoa Auto Layout Guide" this makes sense. The reason I had
not read the "Adopting Auto Layout" section was because I was writing a
new app for 10.8 and thought the section was specifically for adopting
existing code for auto layout.
Thanks,
Chuck
>[snipped out the bulk of my original message]
>
>
>>Hope that helps!
>>-Peter
>
>It helps immensely! Thanks!
>
>Chuck
_______________________________________________
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