On 31. Aug 2018, at 02:23, Demitri Muna <cocoa-...@demitri.com> wrote: > I expect the highlighting to extend to the full height of the row. 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 )>" > ) > > This shows where the problem is: a height constraint on the row of 12 with > the name "NSView-Encapsulated-Layout-Height”. This is the exact height I see > being drawn. I have no idea where this is coming from or how to fix it > though. Any help welcome - it’s annoying because this seems like such simple > thing!
Did you perhaps forget to set translatesAutoresizingMaskIntoConstraints = NO on one of the views you return it defaults to YES on newly-created views)? This constraint is used by the layout system to apply heights you specify elsewhere. I *think* it is one for non-AutoLayout views. If I'm misremembering, check for any other views that arrange their subviews, like NSStackViews. Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _______________________________________________ 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