From 0d3d4c278180c08debc0e2d34397a6f4bd0c63d0 Mon Sep 17 00:00:00 2001 From: Robert McGovern Date: Wed, 20 Apr 2022 13:43:50 +0100 Subject: [PATCH] Some more import switches. Missed them earlier. --- QuietUnrarAppDelegate.h | 1 + QuietUnrarAppDelegate.m | 6 +++--- TDNUserDefaults.h | 1 - 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/QuietUnrarAppDelegate.h b/QuietUnrarAppDelegate.h index fda39a2..b601724 100644 --- a/QuietUnrarAppDelegate.h +++ b/QuietUnrarAppDelegate.h @@ -7,6 +7,7 @@ // @import Cocoa; +@import Carbon; enum { diff --git a/QuietUnrarAppDelegate.m b/QuietUnrarAppDelegate.m index 4b42e89..1c70f71 100644 --- a/QuietUnrarAppDelegate.m +++ b/QuietUnrarAppDelegate.m @@ -6,9 +6,7 @@ // Copyright 2009 Tarasis. All rights reserved. // -#import -#import -#import +@import UserNotifications; #import "QuietUnrarAppDelegate.h" #import "TDNUnarchiver.h" @@ -59,6 +57,8 @@ BOOL appRunning = NO; dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self->preferencesWindowController.window makeKeyAndOrderFront:self]; + // temp set to YES for testing preferences + // my preference is not to have the app become front and central when run. [NSApp activateIgnoringOtherApps:YES]; }); diff --git a/TDNUserDefaults.h b/TDNUserDefaults.h index 1bcf1f0..9b11816 100644 --- a/TDNUserDefaults.h +++ b/TDNUserDefaults.h @@ -5,7 +5,6 @@ // Created by Robert McGovern on 2021/05/31. // -#import #import "FSUserDefaults.h" NS_ASSUME_NONNULL_BEGIN