• 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
Re: Auto Layout & Stacked NSTextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Auto Layout & Stacked NSTextViews
      • From: Keary Suska <email@hidden>
References: 
 >Auto Layout & Stacked NSTextViews (From: Keary Suska <email@hidden>)

  • Prev by Date: Auto Layout & Stacked NSTextViews
  • Next by Date: Re: Auto Layout & Stacked NSTextViews
  • Previous by thread: Auto Layout & Stacked NSTextViews
  • Next by thread: Re: Auto Layout & Stacked NSTextViews
  • Index(es):
    • Date
    • Thread