//go:build darwin && !ios #ifndef appdelegate_h #define appdelegate_h #import @interface AppDelegate : NSResponder @property bool shouldTerminateWhenLastWindowClosed; @property bool shuttingDown; - (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app; @end extern void HandleOpenFile(char *); // Declarations for Apple Event based custom URL handling and universal link extern void HandleOpenURL(char*); @interface CustomProtocolSchemeHandler : NSObject + (void)handleGetURLEvent:(NSAppleEventDescriptor *)event withReplyEvent:(NSAppleEventDescriptor *)replyEvent; @end void StartCustomProtocolHandler(void); #endif /* appdelegate_h */