• 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: Width defining NSLayoutConstraint zero
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Width defining NSLayoutConstraint zero


  • Subject: Re: Width defining NSLayoutConstraint zero
  • From: Jonathan Mitchell <email@hidden>
  • Date: Thu, 10 Apr 2014 17:27:54 +0100

On 10 Apr 2014, at 17:09, Kyle Sluder <email@hidden> wrote:

>>
>> Is the only workaround to wrap such controls in another view and collapse the superview instead?
>
> If you want to remove a view, you should really remove it from its superview. You could look into NSStackView, which will do this automatically if constraints cannot be satisfied.
>
The point is that I don’t want to remove the view (as that will remove its constraints) I just want to resize it and trigger the superview layout.
I have been using NSStackView extensively but it’s a bit of a heavy duty solution in this case as the subviews have to be added programatically at present until IB support catches up.

J


_______________________________________________

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: 
 >Width defining NSLayoutConstraint zero (From: Jonathan Mitchell <email@hidden>)
 >Re: Width defining NSLayoutConstraint zero (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Width defining NSLayoutConstraint zero
  • Next by Date: Re: Width defining NSLayoutConstraint zero
  • Previous by thread: Re: Width defining NSLayoutConstraint zero
  • Next by thread: Re: Width defining NSLayoutConstraint zero
  • Index(es):
    • Date
    • Thread