• 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: Automatically resize parent view when subviews resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automatically resize parent view when subviews resize


  • Subject: Re: Automatically resize parent view when subviews resize
  • From: lorenzo <email@hidden>
  • Date: Mon, 14 Apr 2014 14:17:37 -0500

On 2014-04-14 12:39, Kyle Sluder wrote:
On Mon, Apr 14, 2014, at 10:20 AM, lorenzo wrote:
On 2014-04-14 09:28, Fritz Anderson wrote:
>
> What constraints are you putting on the subviews you add dynamically to
> A and B?

The subviews, a subclass of NSView, are made up of three views, a
vertical NSSlider, an NSTextfield rotated 90 degrees and pinned
to the left side of the slider and another textfield pinned to the
bottom of the slider. This subview returns a height of 150.0 and width
of 50 for its inrtinsic size.

The subviews set top/bottom space to container, with 5px between each.
Did you remember to call
-setTranslatesAutoresizingMaskIntoConstraints:NO on all your
dynamically-added subviews?

--Kyle Sluder
Yes I do. I call it on on the various subviews, but not on the parent
view.
_______________________________________________

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


References: 
 >Automatically resize parent view when subviews resize (From: Lorenzo Thurman <email@hidden>)
 >Re: Automatically resize parent view when subviews resize (From: Fritz Anderson <email@hidden>)
 >Re: Automatically resize parent view when subviews resize (From: lorenzo <email@hidden>)
 >Re: Automatically resize parent view when subviews resize (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Automatically resize parent view when subviews resize
  • Next by Date: Layout-triggered animation
  • Previous by thread: Re: Automatically resize parent view when subviews resize
  • Next by thread: NSTask: how to launch a binary as if I launched it via terminal?
  • Index(es):
    • Date
    • Thread