Re: programmatic layout of controls

2023-08-18 Thread Fred Kiefer
I would expect that you need to provide a frame rectangle at least for the top level view but most likely very view will require one as otherwise it does not even know its start size. > Am 18.08.2023 um 17:57 schrieb Tom Sheffler : > > Thanks Fred. > > Indeed, that was a missing line! >

Re: programmatic layout of controls

2023-08-18 Thread Tom Sheffler
Thanks Fred. Indeed, that was a missing line! Compiles now. Do not see any views. Updated screenshot and description in repo. Still not sure how to use this correctly for layout. Thanks, Tom On Fri, Aug 18, 2023 at 8:38 AM Fred Kiefer wrote: > Hi Tom, > > I had a very short look at your

Re: programmatic layout of controls

2023-08-18 Thread Fred Kiefer
Hi Tom, I had a very short look at your stack view test code and could not see where you create the object `hbox`. This might be completely unrelated to the issue you are having with that code but maybe it points you in the right direction. Cheers, Fred > Am 18.08.2023 um 15:32 schrieb Tom

programmatic layout of controls

2023-08-18 Thread Tom Sheffler
I wanted to create a tiny app with just a few controls and create a layout programmatically. I began by testing NSGridView and NSStackView, but did not succeed with those. In an older "tests-examples" project, I found some older programs that looked reasonable, so that took me down a path of