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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to