mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-16 15:45:50 +01:00
25 lines
679 B
Objective-C
25 lines
679 B
Objective-C
//go:build darwin
|
|
|
|
#ifndef appdelegate_h
|
|
#define appdelegate_h
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
@interface AppDelegate : NSResponder <NSApplicationDelegate>
|
|
@property bool shouldTerminateWhenLastWindowClosed;
|
|
@property bool shuttingDown;
|
|
- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app;
|
|
@end
|
|
|
|
extern void HandleOpenFile(char *);
|
|
|
|
// Declarations for Apple Event based custom URL handling
|
|
extern void HandleCustomProtocol(char*);
|
|
|
|
@interface CustomProtocolSchemeHandler : NSObject
|
|
+ (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent;
|
|
@end
|
|
|
|
void StartCustomProtocolHandler(void);
|
|
|
|
#endif /* appdelegate_h */
|