mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-16 15:45:50 +01:00
22 lines
420 B
Objective-C
22 lines
420 B
Objective-C
//go:build darwin
|
|
|
|
#import "app_delegate.h"
|
|
|
|
AppDelegate *appDelegate = nil;
|
|
|
|
void Init(void) {
|
|
[NSApplication sharedApplication];
|
|
appDelegate = [[AppDelegate alloc] init];
|
|
[NSApp setDelegate:appDelegate];
|
|
}
|
|
|
|
void SetActivationPolicy(int policy) {
|
|
[appDelegate setApplicationActivationPolicy:policy];
|
|
}
|
|
|
|
void Run(void) {
|
|
@autoreleasepool {
|
|
[NSApp run];
|
|
[appDelegate release];
|
|
}
|
|
}
|