Microsoft Remote Desktop Mac Unable To Connect Error Code 0x4

Of course this may only work for the first time you're creating the UI. Future times may not do this. In my app, , I create a method that will be called each time I want to do a full redraw of the app: