5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 18:10:48 +08:00
wails/v2/internal/frontend/desktop/darwin/AppDelegate.h
Andrey Pshenkin 426a569c89
Fix single instance lock for macOS sandbox app (#3029)
* fix single instance lock for sandbox app

* fix single instance lock for sandbox app
2023-11-05 14:10:01 +11:00

34 lines
714 B
Objective-C

//
// AppDelegate.h
// test
//
// Created by Lea Anthony on 10/10/21.
//
#ifndef AppDelegate_h
#define AppDelegate_h
#import <Cocoa/Cocoa.h>
#import "WailsContext.h"
@interface AppDelegate : NSResponder <NSApplicationDelegate, NSTouchBarProvider>
@property bool alwaysOnTop;
@property bool startHidden;
@property (retain) NSString* singleInstanceUniqueId;
@property bool singleInstanceLockEnabled;
@property bool startFullscreen;
@property (retain) WailsWindow* mainWindow;
@end
extern void HandleOpenFile(char *);
extern void HandleSecondInstanceData(char * message);
void SendDataToFirstInstance(char * singleInstanceUniqueId, char * text);
char* GetMacOsNativeTempDir();
#endif /* AppDelegate_h */