Skip to content
This repository was archived by the owner on May 8, 2018. It is now read-only.

Commit 463b47b

Browse files
author
Eun
committed
Release 1.7
1 parent 745e91c commit 463b47b

107 files changed

Lines changed: 2445 additions & 4 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

DisableMonitor-Info.plist

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,17 @@
3030
<string>MainMenu</string>
3131
<key>NSPrincipalClass</key>
3232
<string>NSApplication</string>
33+
<key>SUFeedURL</key>
34+
<string>https://raw.githubusercontent.com/Eun/DisableMonitor/res/appcast.xml</string>
35+
<key>SUEnableAutomaticChecks</key>
36+
<false/>
37+
<key>SUEnableSystemProfiling</key>
38+
<false/>
39+
<key>SUAllowsAutomaticUpdates</key>
40+
<true/>
41+
<key>SUScheduledCheckInterval</key>
42+
<integer>604800</integer>
43+
<key>SUPublicDSAKeyFile</key>
44+
<string>dsa_pub.pem</string>
3345
</dict>
3446
</plist>

DisableMonitor.xcodeproj/project.pbxproj

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
591A9C2F19B8457A00848073 /* DisplayData.m in Sources */ = {isa = PBXBuildFile; fileRef = 591A9C2E19B8457A00848073 /* DisplayData.m */; };
1313
592CED7E18FEB66E00FDDF65 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 592CED7D18FEB66E00FDDF65 /* IOKit.framework */; };
1414
592CED8118FEBDB300FDDF65 /* GLFW.m in Sources */ = {isa = PBXBuildFile; fileRef = 592CED8018FEBDB300FDDF65 /* GLFW.m */; };
15+
593E314119D445C6000B07DE /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 593E314019D445C6000B07DE /* Sparkle.framework */; };
16+
593E314319D445F5000B07DE /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 593E314019D445C6000B07DE /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
17+
593E314719D44873000B07DE /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 593E314519D44873000B07DE /* dsa_pub.pem */; };
1518
594D69681988D0F500D48AD7 /* OnlyIntegerValueFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 594D69671988D0F500D48AD7 /* OnlyIntegerValueFormatter.m */; };
1619
5960567319D2E00E00B4525E /* DisplayIDAndName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5960567219D2E00E00B4525E /* DisplayIDAndName.m */; };
1720
598E9892193DC99B005DEB10 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 598E9891193DC99B005DEB10 /* MainMenu.xib */; };
@@ -26,6 +29,19 @@
2629
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
2730
/* End PBXBuildFile section */
2831

32+
/* Begin PBXCopyFilesBuildPhase section */
33+
593E314219D445E0000B07DE /* CopyFiles */ = {
34+
isa = PBXCopyFilesBuildPhase;
35+
buildActionMask = 2147483647;
36+
dstPath = "";
37+
dstSubfolderSpec = 10;
38+
files = (
39+
593E314319D445F5000B07DE /* Sparkle.framework in CopyFiles */,
40+
);
41+
runOnlyForDeploymentPostprocessing = 0;
42+
};
43+
/* End PBXCopyFilesBuildPhase section */
44+
2945
/* Begin PBXFileReference section */
3046
089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; };
3147
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
@@ -290,6 +306,8 @@
290306
591AEFF5197924CA00277858 /* DisplayData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DisplayData.h; sourceTree = "<group>"; };
291307
592CED7D18FEB66E00FDDF65 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/IOKit.framework; sourceTree = DEVELOPER_DIR; };
292308
592CED8018FEBDB300FDDF65 /* GLFW.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GLFW.m; sourceTree = "<group>"; };
309+
593E314019D445C6000B07DE /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
310+
593E314519D44873000B07DE /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
293311
594D69661988D0F500D48AD7 /* OnlyIntegerValueFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OnlyIntegerValueFormatter.h; sourceTree = "<group>"; };
294312
594D69671988D0F500D48AD7 /* OnlyIntegerValueFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OnlyIntegerValueFormatter.m; sourceTree = "<group>"; };
295313
5960567119D2E00E00B4525E /* DisplayIDAndName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DisplayIDAndName.h; sourceTree = "<group>"; };
@@ -319,6 +337,7 @@
319337
files = (
320338
591A9C2D19B83E3F00848073 /* DisplayServices.framework in Frameworks */,
321339
5997614F19864C25008D8C44 /* Security.framework in Frameworks */,
340+
593E314119D445C6000B07DE /* Sparkle.framework in Frameworks */,
322341
592CED7E18FEB66E00FDDF65 /* IOKit.framework in Frameworks */,
323342
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
324343
);
@@ -394,6 +413,7 @@
394413
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
395414
isa = PBXGroup;
396415
children = (
416+
593E314519D44873000B07DE /* dsa_pub.pem */,
397417
256AC3F00F4B6AF500CF3369 /* DisableMonitor_Prefix.pch */,
398418
29B97316FDCFA39411CA2CEA /* main.m */,
399419
);
@@ -412,6 +432,7 @@
412432
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
413433
isa = PBXGroup;
414434
children = (
435+
593E314019D445C6000B07DE /* Sparkle.framework */,
415436
591A9B2E19B83E2800848073 /* Library */,
416437
591A9B2C19B83E0700848073 /* DesktopServicesPriv.framework */,
417438
5997615019865637008D8C44 /* Carbon.framework */,
@@ -731,6 +752,7 @@
731752
8D1107290486CEB800E47090 /* Resources */,
732753
8D11072C0486CEB800E47090 /* Sources */,
733754
8D11072E0486CEB800E47090 /* Frameworks */,
755+
593E314219D445E0000B07DE /* CopyFiles */,
734756
);
735757
buildRules = (
736758
);
@@ -772,6 +794,7 @@
772794
isa = PBXResourcesBuildPhase;
773795
buildActionMask = 2147483647;
774796
files = (
797+
593E314719D44873000B07DE /* dsa_pub.pem in Resources */,
775798
8D11072B0486CEB800E47090 /* Localizable.strings in Resources */,
776799
59B5766718FFDC6700B57E77 /* icon.icns in Resources */,
777800
598E9892193DC99B005DEB10 /* MainMenu.xib in Resources */,
@@ -824,6 +847,7 @@
824847
FRAMEWORK_SEARCH_PATHS = (
825848
"$(inherited)",
826849
"$(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks",
850+
"$(PROJECT_DIR)",
827851
);
828852
GCC_DYNAMIC_NO_PIC = NO;
829853
GCC_ENABLE_FIX_AND_CONTINUE = YES;
@@ -849,6 +873,7 @@
849873
FRAMEWORK_SEARCH_PATHS = (
850874
"$(inherited)",
851875
"$(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks",
876+
"$(PROJECT_DIR)",
852877
);
853878
GCC_MODEL_TUNING = G5;
854879
GCC_PRECOMPILE_PREFIX_HEADER = YES;

DisableMonitorAppDelegate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
#import <Cocoa/Cocoa.h>
20+
#import <Sparkle/Sparkle.h>
2021
#import "CustomResolution.h"
2122
#import "DisplayData.h"
2223
@interface DisableMonitorAppDelegate : NSObject <NSApplicationDelegate, NSMenuDelegate, NSWindowDelegate, NSOutlineViewDelegate> {
@@ -49,6 +50,7 @@
4950
@property (assign) IBOutlet NSTextField *about_lblVersion;
5051

5152
@property (assign) CGDirectDisplayID window_display;
53+
@property (assign) IBOutlet SUUpdater *updater;
5254

5355

5456
+(NSMutableArray*) GetSortedDisplays;

DisableMonitorAppDelegate.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ @implementation DisableMonitorAppDelegate
5252
@synthesize about_lblVersion;
5353

5454
@synthesize window_display;
55+
@synthesize updater;
5556

5657

5758
CFStringRef const kDisplayBrightness = CFSTR(kIODisplayBrightnessKey);
@@ -634,6 +635,11 @@ -(IBAction)GotoHomePage:(id)sender
634635
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://github.com/Eun/DisableMonitor"]];
635636
}
636637

638+
-(IBAction)CheckForUpdates:(id)sender
639+
{
640+
[updater checkForUpdates:sender];
641+
}
642+
637643

638644

639645

MainMenu.xib

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
33
<dependencies>
4-
<deployment defaultVersion="1060" identifier="macosx"/>
54
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6245"/>
65
</dependencies>
76
<objects>
@@ -49,6 +48,7 @@
4948
<outlet property="pref_lstResolutions" destination="cMr-0V-T92" id="dOu-mz-tCq"/>
5049
<outlet property="pref_window" destination="B4q-iO-a3J" id="r5c-af-qQR"/>
5150
<outlet property="statusMenu" destination="533" id="537"/>
51+
<outlet property="updater" destination="qSi-Sj-bZh" id="yBK-eB-bv4"/>
5252
<outlet property="window" destination="B4q-iO-a3J" id="JQS-QZ-C3w"/>
5353
<outlet property="window_btnadd" destination="I3n-Kc-7oN" id="Xjq-PY-QkV"/>
5454
<outlet property="window_btnclose" destination="67K-Sz-8O1" id="G0r-RH-4od"/>
@@ -287,6 +287,9 @@
287287
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
288288
<font key="font" metaFont="system"/>
289289
</buttonCell>
290+
<connections>
291+
<action selector="CheckForUpdates:" target="494" id="xMk-9B-P6v"/>
292+
</connections>
290293
</button>
291294
<button id="fxB-RB-TIE">
292295
<rect key="frame" x="0.0" y="0.0" width="180" height="12"/>
@@ -303,6 +306,7 @@
303306
</view>
304307
<point key="canvasLocation" x="532.5" y="-30"/>
305308
</window>
309+
<customObject id="qSi-Sj-bZh" customClass="SUUpdater"/>
306310
</objects>
307311
<resources>
308312
<image name="NSAddTemplate" width="8" height="8"/>

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ Easily disable, enable or change the resolution of a monitor!
99

1010
Changelog
1111
=========
12+
1.7:
13+
* Added Updater
14+
* Added Quit Menu (Alternative Menu)
15+
* Added Start Screensaver Menu (Alternative Menu)
16+
* Added console usage (Issue #8)
17+
* Added About Dialog
18+
1219
1.6:
1320
* Added Icons
1421
* Added Lock Screens

Sparkle.framework/Headers

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Headers

Sparkle.framework/Resources

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Resources

Sparkle.framework/Sparkle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Sparkle

0 commit comments

Comments
 (0)