diff --git a/Aerial.xcodeproj/project.pbxproj b/Aerial.xcodeproj/project.pbxproj index cef687a8..000c265a 100644 --- a/Aerial.xcodeproj/project.pbxproj +++ b/Aerial.xcodeproj/project.pbxproj @@ -413,7 +413,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0800; - LastUpgradeCheck = 1000; + LastUpgradeCheck = 1010; ORGANIZATIONNAME = "John Coates"; TargetAttributes = { FA143CD51BDA3E880041A82B = { @@ -646,7 +646,7 @@ MACOSX_DEPLOYMENT_TARGET = 10.9; PRODUCT_BUNDLE_IDENTIFIER = "com.johncoates.Aerial-Test"; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_COMPILATION_MODE = singlefile; + SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OBJC_BRIDGING_HEADER = "Aerial/Source/Models/Time/Aerial-Bridging-Header.h"; SWIFT_SWIFT3_OBJC_INFERENCE = On; }; diff --git a/Aerial.xcodeproj/xcshareddata/xcschemes/Aerial.xcscheme b/Aerial.xcodeproj/xcshareddata/xcschemes/Aerial.xcscheme index 32087883..f94b9ebb 100644 --- a/Aerial.xcodeproj/xcshareddata/xcschemes/Aerial.xcscheme +++ b/Aerial.xcodeproj/xcshareddata/xcschemes/Aerial.xcscheme @@ -1,6 +1,6 @@ - + - + + @@ -12,7 +13,7 @@ - + @@ -20,11 +21,11 @@ - + - + - + @@ -38,7 +39,7 @@ - + @@ -56,7 +57,7 @@ - + @@ -64,570 +65,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -657,7 +94,7 @@ - + @@ -667,22 +104,22 @@ - - + + - + - + - + - + diff --git a/Aerial/App/Resources/Info.plist b/Aerial/App/Resources/Info.plist index 335391bc..e8db4759 100644 --- a/Aerial/App/Resources/Info.plist +++ b/Aerial/App/Resources/Info.plist @@ -17,11 +17,13 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.4.4beta4 + 1.4.5beta2 CFBundleSignature ???? CFBundleVersion 1 + LSApplicationCategoryType + public.app-category.utilities LSMinimumSystemVersion $(MACOSX_DEPLOYMENT_TARGET) NSAppTransportSecurity diff --git a/Aerial/Source/Controllers/PreferencesWindowController.swift b/Aerial/Source/Controllers/PreferencesWindowController.swift index 4a29800e..8b3cadf6 100644 --- a/Aerial/Source/Controllers/PreferencesWindowController.swift +++ b/Aerial/Source/Controllers/PreferencesWindowController.swift @@ -174,6 +174,8 @@ class PreferencesWindowController: NSWindowController, NSOutlineViewDataSource, var locationManager: CLLocationManager? + public var appMode: Bool = false + // MARK: - Init required init?(coder decoder: NSCoder) { self.fontManager = NSFontManager.shared @@ -479,7 +481,7 @@ class PreferencesWindowController: NSWindowController, NSOutlineViewDataSource, } else { sleepAfterLabel.stringValue = "Unable to determine your Mac sleep settings" } - + debugLog("appMode : \(appMode)") } override func windowDidLoad() { @@ -492,15 +494,10 @@ class PreferencesWindowController: NSWindowController, NSOutlineViewDataSource, @IBAction func close(_ sender: AnyObject?) { logPanel.close() - window?.sheetParent?.endSheet(window!) - if #available(OSX 10.14, *) { + if appMode { + NSApplication.shared.terminate(nil) } else { - // Is there a better feeling than fixing a weird bug calling methods - // documented as "never invoke this method directly" ? - window?.resignMain() - window?.resignKey() - window?.becomeMain() - window?.becomeKey() + window?.sheetParent?.endSheet(window!) } }