Skip to content

Commit 9e4ba00

Browse files
committed
v1.5: update for Mojave
Signed-off-by: Chris Warrick <[email protected]>
1 parent c8fd71f commit 9e4ba00

File tree

5 files changed

+27
-10
lines changed

5 files changed

+27
-10
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ Changelog
33

44
More information, including binaries, can be found on GitHub in the [releases section](https://github.com/Kwpolska/DisplayMenu/releases).
55

6+
v1.5 (build 6)
7+
--------------
8+
9+
Update for macOS Mojave.
10+
611
v1.4 (build 5)
712
--------------
813

Display Menu.xcodeproj/project.pbxproj

+7-3
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
isa = PBXProject;
106106
attributes = {
107107
LastSwiftUpdateCheck = 0830;
108-
LastUpgradeCheck = 0910;
108+
LastUpgradeCheck = 1000;
109109
ORGANIZATIONNAME = "Chris Warrick";
110110
TargetAttributes = {
111111
E5E515441EF943CD00D8CF93 = {
@@ -219,13 +219,15 @@
219219
CLANG_WARN_BOOL_CONVERSION = YES;
220220
CLANG_WARN_COMMA = YES;
221221
CLANG_WARN_CONSTANT_CONVERSION = YES;
222+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
222223
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
223224
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
224225
CLANG_WARN_EMPTY_BODY = YES;
225226
CLANG_WARN_ENUM_CONVERSION = YES;
226227
CLANG_WARN_INFINITE_RECURSION = YES;
227228
CLANG_WARN_INT_CONVERSION = YES;
228229
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
230+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
229231
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
230232
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
231233
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -252,7 +254,7 @@
252254
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
253255
GCC_WARN_UNUSED_FUNCTION = YES;
254256
GCC_WARN_UNUSED_VARIABLE = YES;
255-
MACOSX_DEPLOYMENT_TARGET = 10.13;
257+
MACOSX_DEPLOYMENT_TARGET = 10.14;
256258
MTL_ENABLE_DEBUG_INFO = YES;
257259
ONLY_ACTIVE_ARCH = YES;
258260
SDKROOT = macosx;
@@ -276,13 +278,15 @@
276278
CLANG_WARN_BOOL_CONVERSION = YES;
277279
CLANG_WARN_COMMA = YES;
278280
CLANG_WARN_CONSTANT_CONVERSION = YES;
281+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
279282
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
280283
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
281284
CLANG_WARN_EMPTY_BODY = YES;
282285
CLANG_WARN_ENUM_CONVERSION = YES;
283286
CLANG_WARN_INFINITE_RECURSION = YES;
284287
CLANG_WARN_INT_CONVERSION = YES;
285288
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
289+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
286290
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
287291
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
288292
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -303,7 +307,7 @@
303307
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
304308
GCC_WARN_UNUSED_FUNCTION = YES;
305309
GCC_WARN_UNUSED_VARIABLE = YES;
306-
MACOSX_DEPLOYMENT_TARGET = 10.13;
310+
MACOSX_DEPLOYMENT_TARGET = 10.14;
307311
MTL_ENABLE_DEBUG_INFO = NO;
308312
SDKROOT = macosx;
309313
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Display Menu/AppDelegate.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
4949
refreshItem.keyEquivalentModifierMask = NSEvent.ModifierFlags.control
5050
statusMenu.delegate = self
5151

52-
statusItem.image = #imageLiteral(resourceName: "DMStatusReady")
52+
statusItem.button?.image = #imageLiteral(resourceName: "DMStatusReady")
5353
statusItem.menu = statusMenu
5454
}
5555

@@ -82,16 +82,16 @@ class AppDelegate: NSObject, NSApplicationDelegate {
8282
}
8383

8484
@objc func _resetDMIcon() {
85-
self.statusItem.image = #imageLiteral(resourceName: "DMStatusReady")
85+
self.statusItem.button?.image = #imageLiteral(resourceName: "DMStatusReady")
8686
}
8787

8888
@objc func applyPresetFromMenu(_ sender: NSMenuItem?) {
89-
self.statusItem.image = #imageLiteral(resourceName: "DMStatusWorking")
89+
self.statusItem.button?.image = #imageLiteral(resourceName: "DMStatusWorking")
9090
do {
9191
try displayManager!.applyPreset(sender!.representedObject as! DisplayPreset)
92-
self.statusItem.image = #imageLiteral(resourceName: "DMStatusSuccess")
92+
self.statusItem.button?.image = #imageLiteral(resourceName: "DMStatusSuccess")
9393
} catch let error {
94-
self.statusItem.image = #imageLiteral(resourceName: "DMStatusError")
94+
self.statusItem.button?.image = #imageLiteral(resourceName: "DMStatusError")
9595
alert(NSLocalizedString("Failed to apply preset", comment: "alert when applyPreset fails"), String(reflecting: error), alertStyle: .critical)
9696
}
9797
Timer.scheduledTimer(timeInterval: TimeInterval(1.5), target: self, selector: #selector(_resetDMIcon), userInfo: nil, repeats: false)

Display Menu/Info.plist

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<key>CFBundlePackageType</key>
2020
<string>APPL</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>1.4</string>
22+
<string>1.5</string>
2323
<key>CFBundleVersion</key>
24-
<string>5</string>
24+
<string>6</string>
2525
<key>LSMinimumSystemVersion</key>
2626
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
2727
<key>LSUIElement</key>

0 commit comments

Comments
 (0)