Combining learning Rust and understanding LLMs, I prompted Gemini's CLI to create a little utility I want. This is my first attempt to do real work with it, and more than before I really understand the comparisons between LLM and cocaine that people are making.
And I'm not actually learning Rust...
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.