• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Auto layout and split views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: CGContext... logging messages
  • Next by Date: Re: CGContext... logging messages
  • Previous by thread: Making text in table view rows editable during edit
  • Next by thread: How to perform delayed calls using NSOperationQueue?
  • Index(es):
    • Date
    • Thread