--- a/ui/cocoa/toolkit.m Sun Mar 22 19:57:15 2026 +0100 +++ b/ui/cocoa/toolkit.m Tue Mar 24 21:28:14 2026 +0100 @@ -62,12 +62,12 @@ app_argv = (const char**)argv; uic_init_global_context(); - + uic_menu_init(); uic_toolbar_init(); - + uic_load_app_properties(); - + NSApplication *app = [NSApplication sharedApplication]; [app setActivationPolicy:NSApplicationActivationPolicyRegular]; @@ -75,6 +75,13 @@ //[[NSBundle mainBundle] loadNibNamed:@"MainMenu" owner:NSApp topLevelObjects:&topLevelObjects]; app_delegate = [[AppDelegate alloc] init]; + + if(app.delegate != nil) { + printf("app delegate exists\n"); + } else { + printf("app delegate is null\n"); + } + fflush(stdout); app.delegate = app_delegate;