Hello, i've programmed my first C# App with Visual-Studio and XCode Interface Builder on my Mac. The app is running fine except 1 large problem.
After starting the app everything is running fine, i am able to minimize or maximize it, but if i close the window of the program (red cross top left) i am not able to relaunch the window of the app. All the other apps are still running in the dock if i close the window of the program and if i click on them the window of this app will reappear.
Sadly this isnt the case for my app, the window remains hidden but it is still running in the dock. To get the app running again if have to rightlick on it in the dock and force it to quit and restart it afterwards. After restarting the window reappears and everything is working fine until i close the window again.
I've tried the app in debug mode and also in release mode. The app is correctly signed with my developer key.
Please help me, i am going crazy. Everything works except this.
I use an Apple M1 Pro and Visual Studio for Mac 17.4.1 and XCode 14.1.