Re: Auto Layout & Stacked NSTextViews
Re: Auto Layout & Stacked NSTextViews
- Subject: Re: Auto Layout & Stacked NSTextViews
- From: Fritz Anderson <email@hidden>
- Date: Sun, 26 May 2013 14:26:18 -0500
On 26 May 2013, at 12:31 PM, Keary Suska <email@hidden> wrote:
> I have a layout problem that I would think auto layout was designed to solve but I can't seem to get it to work. In short, I have three NSTextViews aligned vertically (with NSTextField labels between them) and I want them all to grow vertically but keep the space between them. The best I can get is to grow the bottom one, but the two above don't want to budge. Is there a trick to getting this to work, or is auto layout just not up to the task?
My quick experiment says:
A top fixed to top of container
B top fixed to bottom of A; height == height of A
C top fixed to the bottom of B; height == height of B; bottom fixed to bottom of container.
Delete all other vertical constraints; the above appears to be sufficient and consistent, so IB won't fight you. The Cocoa layout instrument doesn't see anything wrong.
That's what I found in about three minutes. It worked for me.
--
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden