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

2018-10-04 Thread Uli Kusterer
On 31. Aug 2018, at 02:23, Demitri Muna 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]

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

2018-08-31 Thread David Duncan
> On Aug 30, 2018, at 6:38 PM, Demitri Muna wrote: > > > On Aug 30, 2018, at 9:23 PM, Quincey Morris > wrote: > >> “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

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

2018-08-30 Thread Demitri Muna
On Aug 30, 2018, at 9:23 PM, Quincey Morris wrote: > “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? I’m not adding any constraints at run time. IB

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

2018-08-30 Thread Quincey Morris
On Aug 30, 2018, at 17:23 , Demitri Muna 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: > ( >" 16

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

2018-08-30 Thread Demitri Muna
Hi Rob, On Aug 30, 2018, at 8:34 PM, Rob Petrovec wrote: > You need to implement -outlineView:heightOfRowByItem: to return the height > you want for each row. Hope that helps. Sorry, in my email I wrote "outlineView:rowViewForItem:” when I meant to say "outlineView:heightOfRowByItem:”,

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

2018-08-30 Thread Rob Petrovec
You need to implement -outlineView:heightOfRowByItem: to return the height you want for each row. Hope that helps. —Rob > On Aug 30, 2018, at 6:23 PM, Demitri Muna wrote: > > Hi, > > I’ve been hitting my head against a wall for more time than I’d like to admit > on what should be a simple

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

2018-08-30 Thread Demitri Muna
Hi, I’ve been hitting my head against a wall for more time than I’d like to admit on what should be a simple problem - maybe someone can spot it immediately… I’m implementing a view-based source list style NSOutlineView (I’m trying to mimic the Finder sidebar). My header items are a different