#include "bridge.h" #import extern "C" { #include "AppDelegate.h" } int32_t initialize() { AppDelegate *delegate = [[AppDelegate alloc] init]; NSApplication * application = [NSApplication sharedApplication]; [application setDelegate:delegate]; } int32_t eventloop() { [NSApp run]; }