• 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: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?


  • Subject: Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
  • From: Quincey Morris <email@hidden>
  • Date: Thu, 30 Aug 2018 18:23:48 -0700

On Aug 30, 2018, at 17:23 , Demitri Muna <email@hidden> wrote:
>
> I tried to force this by adding two constraints, 2 pixels above and below the
> image, then got this:
>
> 2018-08-30 14:55:36.807612-0400 Nightlight[78272:15775715] [Layout] Unable to
> simultaneously satisfy constraints:
> (
>    "<NSLayoutConstraint:0x60c00009be90 NSImageView:0x60c000170e00.height ==
> 16   (active)>",
>    "<NSLayoutConstraint:0x60c000087ee0 V:|-(2)-[NSImageView:0x60c000170e00]
> (active, names: DE_DataCell:0x60c000188470, '|':DE_DataCell:0x60c000188470
> )>",
>    "<NSLayoutConstraint:0x60c000082300 V:[NSImageView:0x60c000170e00]-(2)-|
> (active, names: DE_DataCell:0x60c000188470, '|':DE_DataCell:0x60c000188470
> )>",
>    "<NSLayoutConstraint:0x60c00009c5c0 'NSView-Encapsulated-Layout-Height'
> DE_DataCell.height == 12   (active, names: DE_DataCell:0x60c000188470 )>"
> )

“Encapsulated layout height” sounds like one of the constraints that IB adds to
your layout when it’s under-constrained at design time. Are you adding the
other constraints at run time?

_______________________________________________

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

  • Follow-Ups:
    • Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
      • From: Demitri Muna <email@hidden>
References: 
 >Bothersome "NSView-Encapsulated-Layout-Height" constraint? (From: Demitri Muna <email@hidden>)

  • Prev by Date: Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
  • Next by Date: Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
  • Previous by thread: Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
  • Next by thread: Re: Bothersome "NSView-Encapsulated-Layout-Height" constraint?
  • Index(es):
    • Date
    • Thread