Several newb questions (state, bind, win on macOS)

Does the sample i attached crash also? Can you try and make that sample crash in the same manner? (with minimal code).

The reason i used theContainer is because that is a child of the main view, so i can add buttons and other controls in the main view.

Thanks again!