Re: Auto-layout, Forcing a top-level view to hug its contents

2022-11-04 Thread Sandor Szatmari via Cocoa-dev
> On Nov 4, 2022, at 23:05, Steve Christensen via Cocoa-dev > wrote: > > The view hierarchy doesn’t go through a layout pass until after it is added > to a live view or window. At awakeFromNib time it’s still essentially a > snapshot of the layout in the nib since it hasn’t yet been

Re: Auto-layout, Forcing a top-level view to hug its contents

2022-11-04 Thread Steve Christensen via Cocoa-dev
The view hierarchy doesn’t go through a layout pass until after it is added to a live view or window. At awakeFromNib time it’s still essentially a snapshot of the layout in the nib since it hasn’t yet been inserted into the “context” that will allow the layout engine to determine how big all