mirror of
https://github.com/neon443/DockPhobia.git
synced 2026-03-11 06:49:12 +00:00
sparke menu item
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
A9C9AF812DE7776A0039D7A5 /* DockSide.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C9AF802DE777530039D7A5 /* DockSide.swift */; };
|
||||
A9C9AF832DE77CB70039D7A5 /* SkyHigh.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C9AF822DE77CB70039D7A5 /* SkyHigh.swift */; };
|
||||
A9C9B0682DE888B20039D7A5 /* Preferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = A9C9B0672DE888B20039D7A5 /* Preferences.swift */; };
|
||||
A9C9B06D2DE99E5F0039D7A5 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = A9C9B06C2DE99E5F0039D7A5 /* Sparkle */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
@@ -36,6 +37,7 @@
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
A9C9B06D2DE99E5F0039D7A5 /* Sparkle in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -108,6 +110,7 @@
|
||||
);
|
||||
name = DockPhobia;
|
||||
packageProductDependencies = (
|
||||
A9C9B06C2DE99E5F0039D7A5 /* Sparkle */,
|
||||
);
|
||||
productName = DockPhobia;
|
||||
productReference = A966B4D62DE0841000C721A5 /* DockPhobia.app */;
|
||||
@@ -138,6 +141,9 @@
|
||||
);
|
||||
mainGroup = A966B4CD2DE0841000C721A5;
|
||||
minimizedProjectReferenceProxies = 1;
|
||||
packageReferences = (
|
||||
A9C9B06B2DE99E5F0039D7A5 /* XCRemoteSwiftPackageReference "Sparkle" */,
|
||||
);
|
||||
productRefGroup = A966B4D72DE0841000C721A5 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
@@ -388,6 +394,25 @@
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
|
||||
/* Begin XCRemoteSwiftPackageReference section */
|
||||
A9C9B06B2DE99E5F0039D7A5 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
|
||||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/sparkle-project/Sparkle";
|
||||
requirement = {
|
||||
kind = upToNextMajorVersion;
|
||||
minimumVersion = 2.7.0;
|
||||
};
|
||||
};
|
||||
/* End XCRemoteSwiftPackageReference section */
|
||||
|
||||
/* Begin XCSwiftPackageProductDependency section */
|
||||
A9C9B06C2DE99E5F0039D7A5 /* Sparkle */ = {
|
||||
isa = XCSwiftPackageProductDependency;
|
||||
package = A9C9B06B2DE99E5F0039D7A5 /* XCRemoteSwiftPackageReference "Sparkle" */;
|
||||
productName = Sparkle;
|
||||
};
|
||||
/* End XCSwiftPackageProductDependency section */
|
||||
};
|
||||
rootObject = A966B4CE2DE0841000C721A5 /* Project object */;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"originHash" : "e721da7f9826abdffcb6185e886155efa2514bd6234475f1afa893e29eb258d6",
|
||||
"pins" : [
|
||||
{
|
||||
"identity" : "sparkle",
|
||||
"kind" : "remoteSourceControl",
|
||||
"location" : "https://github.com/sparkle-project/Sparkle",
|
||||
"state" : {
|
||||
"revision" : "0ca3004e98712ea2b39dd881d28448630cce1c99",
|
||||
"version" : "2.7.0"
|
||||
}
|
||||
}
|
||||
],
|
||||
"version" : 3
|
||||
}
|
||||
BIN
DockPhobia/.DS_Store
vendored
BIN
DockPhobia/.DS_Store
vendored
Binary file not shown.
@@ -6,6 +6,7 @@
|
||||
//
|
||||
|
||||
import AppKit
|
||||
import Sparkle
|
||||
|
||||
@NSApplicationMain
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
@@ -14,9 +15,18 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
|
||||
var settings = DPSettingsModel()
|
||||
var mouseTracker: MouseTracker
|
||||
let updateController: SPUStandardUpdaterController
|
||||
|
||||
var checkforUpdatesMenuItem: NSMenuItem!
|
||||
|
||||
override init() {
|
||||
self.mouseTracker = MouseTracker(settings: settings)
|
||||
//call .startUpdater() later
|
||||
updateController = SPUStandardUpdaterController(
|
||||
startingUpdater: true,
|
||||
updaterDelegate: nil,
|
||||
userDriverDelegate: nil
|
||||
)
|
||||
super.init()
|
||||
}
|
||||
|
||||
@@ -42,6 +52,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
let start = NSMenuItem(title: describeStartButton(), action: #selector(didTapStart), keyEquivalent: "")
|
||||
menu.addItem(start)
|
||||
|
||||
checkforUpdatesMenuItem.target = updateController
|
||||
checkforUpdatesMenuItem.action = #selector(SPUStandardUpdaterController.checkForUpdates(_:))
|
||||
menu.addItem(checkforUpdatesMenuItem)
|
||||
|
||||
let screen = NSMenuItem(
|
||||
title: "\(mouseTracker.screen.width)x\(mouseTracker.screen.height)",
|
||||
action: nil,
|
||||
|
||||
@@ -414,19 +414,6 @@
|
||||
</items>
|
||||
<point key="canvasLocation" x="200" y="121"/>
|
||||
</menu>
|
||||
<menu id="ONX-cK-IuT">
|
||||
<items>
|
||||
<menuItem title="Item 1" id="6WY-F1-Y6A">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="Item 2" id="Vew-Im-EWB">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
<menuItem title="Item 3" id="dVu-3p-SKK">
|
||||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
</menuItem>
|
||||
</items>
|
||||
<point key="canvasLocation" x="-160" y="321"/>
|
||||
</menu>
|
||||
<userDefaultsController representsSharedInstance="YES" id="KLo-tU-Av3"/>
|
||||
</objects>
|
||||
</document>
|
||||
|
||||
Reference in New Issue
Block a user