Loading menus on Catalina

NeilTurpNeilTurp GBMember ✭✭

Hi

I have a Xamarin Forms app that has run perfectly on macos for many years. The menu functionality is loaded in the AppDelegate.DidFinishLaunching function. However, since Catalina I've had problems. We've tried on 4 macs, 3 are ok but one (a paying user so I can't get his machine and take it apart) fails. And it always fails while loading the menu functions. It happily does all the other jobs in DidFinishLaunching, but crashes completely if I try to add anything to the menu.

MainWindowController mainWindowController1 = mainWindowController = new MainWindowController();
    mainWindowController1.Window.MakeKeyAndOrderFront(this);
    mainWindowController1.Window.ViewsNeedDisplay = true;
mainWindowController1.Window.rdv.SetNeedsDisplayInRect(mainWindowController.Window.rdv.Frame);
mainWindowController1.Window.Menu.ItemAt(0).Menu.ItemAt(1).Submenu.ItemAt(0).Activated += ModMain2.NewCase; 
mainWindowController1.Window.Menu.ItemAt(0).Menu.ItemAt(1).Submenu.ItemAt(1).Activated += mainWindowController.Window.OpenCase;

Has anyone else come across this or have any suggestions?

Thanks, Neil

Sign In or Register to comment.