Auto layout and split views
Auto layout and split views
- Subject: Auto layout and split views
- From: Shane Stanley <email@hidden>
- Date: Tue, 22 Jul 2014 10:09:18 +1000
I'm trying to rework a window to use auto layout, and I'm stuck.
The window consists of several nested split views, roughly as shown below. A is one side of the main split view, and the right side is further split into B and another view, which contains yet another split view holding views C and D.
____________
| | | |
| A | C | D |
| |___|___|
| | |
| | B |
| | |
-------------
D can be collapsed. So if the user drags the divider to the right, when D gets too small, it is collapsed. But when I try to set the window up using auto layout, when the divider is dragged to the minimum size for D, view C keeps expanding while view D remains the same size, and view A starts shrinking instead. Similarly, if the user changes the C split to horizontal, dragging down results in B shrinking.
What I'm trying to achieve is to isolate the behavior when dragging a divider so that only the owning split view responds. And I'm not sure how to go about that.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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