espanso/native/libmacbridge/bridge.mm
2019-09-05 17:20:52 +02:00

17 lines
332 B
Plaintext

#include "bridge.h"
#import <Foundation/Foundation.h>
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];
}