Re: SplitView autolayout + autosave = proportionally resized views
Re: SplitView autolayout + autosave = proportionally resized views
- Subject: Re: SplitView autolayout + autosave = proportionally resized views
- From: Kyle Sluder <email@hidden>
- Date: Thu, 27 Mar 2014 16:58:02 -0700
On Thu, Mar 27, 2014, at 04:41 PM, Lee Ann Rucker wrote:
>
> On Mar 27, 2014, at 4:16 PM, Kyle Sluder wrote:
>
> >
> > Your right-side holding priority is pretty odd, but that combination
> > should result in the behavior you desire.
>
> Found that on a google search :)
I'd be wary about setting any priorities so low. The UIKit release notes
mention that setting the content hugging priority below 2 for a UIButton
can result in bad internal layout. Similar problems may arise on the
Mac.
A priority of 1 is even lower than the priority used by -[NSView
fittingSize] — that method uses NSLayoutPriorityFittingSizeCompression
(which is equal to 50).
>
> Yes, the delegate methods were the first things I ripped out when I made
> it autolayout, along with every setFrame:
>
> Done! rdar://16451287
>
Cool. I wish you a speedy and satisfactory reply. :)
--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