Today I learned that Cocoa's
2026-01-10 00:25:03.192495+01 by Dan Lyke 0 comments
Today I learned that Cocoa's -layoutSubtreeIfNeeded only does the work if the NSView is attached, which means that rather than calculating where to put the frame before adding the subview, you have to add the subview somewhere off-screen, layout, and then move it where you want it.