chore: remove unused deskflow-gui/AppDelegate

This commit is contained in:
sithlord48
2025-01-14 18:06:38 -05:00
committed by Chris Rizzitello
parent dc5e971043
commit 08ad64eb4d
2 changed files with 0 additions and 58 deletions

View File

@ -1,20 +0,0 @@
#pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#import <Cocoa/Cocoa.h>
#if OSX_DEPLOYMENT_TARGET >= 1014
#import <UserNotifications/UNUserNotificationCenter.h>
@interface AppDelegate
: NSObject <NSApplicationDelegate, NSUserNotificationCenterDelegate, UNUserNotificationCenterDelegate>
#else
@interface AppDelegate : NSObject <NSApplicationDelegate, NSUserNotificationCenterDelegate>
#endif
@end
#ifdef __cplusplus
}
#endif

View File

@ -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