Skip to content

Commit 1b8f724

Browse files
committed
Automatic update check
1 parent ea105c8 commit 1b8f724

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ColorSet/Classes/ApplicationDelegate.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,20 @@
2323
******************************************************************************/
2424

2525
import Cocoa
26+
import GitHubUpdates
2627

2728
@NSApplicationMain
2829

2930
class ApplicationDelegate: NSResponder, NSApplicationDelegate
3031
{
3132
private var controllers = [ NSWindowController ]()
3233
private var aboutWindowController: NSWindowController?
34+
@IBOutlet private var updater: GitHubUpdater?
3335

3436
func applicationDidFinishLaunching( _ notification: Notification )
35-
{}
37+
{
38+
self.updater?.checkForUpdatesInBackground()
39+
}
3640

3741
func applicationWillTerminate( _ notification: Notification )
3842
{}

ColorSet/Interface/Base.lproj/MainMenu.xib

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
</customObject>
1313
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
1414
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
15-
<customObject id="Voe-Tx-rLC" customClass="ApplicationDelegate" customModule="ColorSet" customModuleProvider="target"/>
15+
<customObject id="Voe-Tx-rLC" customClass="ApplicationDelegate" customModule="ColorSet" customModuleProvider="target">
16+
<connections>
17+
<outlet property="updater" destination="Uwj-E6-Thg" id="dkK-9r-X26"/>
18+
</connections>
19+
</customObject>
1620
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>
1721
<menu title="Main Menu" systemMenu="main" id="AYu-sK-qS6">
1822
<items>

0 commit comments

Comments
 (0)