diff --git a/src/apps/deskflow-gui/AppDelegate.h b/src/apps/deskflow-gui/AppDelegate.h deleted file mode 100644 index 6ac22739a..000000000 --- a/src/apps/deskflow-gui/AppDelegate.h +++ /dev/null @@ -1,20 +0,0 @@ -#pragma once -#ifdef __cplusplus -extern "C" -{ -#endif - -#import -#if OSX_DEPLOYMENT_TARGET >= 1014 -#import - @interface AppDelegate - : NSObject -#else -@interface AppDelegate : NSObject -#endif - - @end - -#ifdef __cplusplus -} -#endif diff --git a/src/apps/deskflow-gui/AppDelegate.mm b/src/apps/deskflow-gui/AppDelegate.mm deleted file mode 100644 index 4ff0ca008..000000000 --- a/src/apps/deskflow-gui/AppDelegate.mm +++ /dev/null @@ -1,38 +0,0 @@ -#import "AppDelegate.h" - -@interface AppDelegate () - -@property(strong) IBOutlet NSWindow *window; -@end - -@implementation AppDelegate { -} - -- (void)applicationDidFinishLaunching:(NSNotification *)aNotification -{ - [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self]; -#if OSX_DEPLOYMENT_TARGET >= 1014 - [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self]; -#endif -} - -- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center - shouldPresentNotification:(NSUserNotification *)notification -{ - return YES; -} - -#if OSX_DEPLOYMENT_TARGET >= 1014 -- (void)userNotificationCenter:(UNUserNotificationCenter *)center - willPresentNotification:(UNNotification *)notification - withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler -{ - UNNotificationPresentationOptions presentationOptions = UNNotificationPresentationOptionSound | - UNNotificationPresentationOptionAlert | - UNNotificationPresentationOptionBadge; - - completionHandler(presentationOptions); -} -#endif - -@end