Skip to content

Commit 985a349

Browse files
author
Noah Kovacs
committed
fix: update menus to look better, add quit button
Signed-off-by: Noah Kovacs <[email protected]>
1 parent 544e55d commit 985a349

File tree

16 files changed

+384
-131
lines changed

16 files changed

+384
-131
lines changed

.gitignore

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### macOS template
3+
# General
4+
.DS_Store
5+
.AppleDouble
6+
.LSOverride
7+
8+
# Icon must end with two \r
9+
Icon
10+
11+
# Thumbnails
12+
._*
13+
14+
# Files that might appear in the root of a volume
15+
.DocumentRevisions-V100
16+
.fseventsd
17+
.Spotlight-V100
18+
.TemporaryItems
19+
.Trashes
20+
.VolumeIcon.icns
21+
.com.apple.timemachine.donotpresent
22+
23+
# Directories potentially created on remote AFP share
24+
.AppleDB
25+
.AppleDesktop
26+
Network Trash Folder
27+
Temporary Items
28+
.apdisk
29+
30+
### Xcode template
31+
# Xcode
32+
#
33+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
34+
35+
## User settings
36+
xcuserdata/
37+
38+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
39+
*.xcscmblueprint
40+
*.xccheckout
41+
42+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
43+
build/
44+
DerivedData/
45+
*.moved-aside
46+
*.pbxuser
47+
!default.pbxuser
48+
*.mode1v3
49+
!default.mode1v3
50+
*.mode2v3
51+
!default.mode2v3
52+
*.perspectivev3
53+
!default.perspectivev3
54+
55+
## Xcode Patch
56+
*.xcodeproj/*
57+
!*.xcodeproj/project.pbxproj
58+
!*.xcodeproj/xcshareddata/
59+
!*.xcworkspace/contents.xcworkspacedata
60+
/*.gcno
61+
62+
### JetBrains template
63+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
64+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
65+
66+
# User-specific stuff
67+
.idea/**/workspace.xml
68+
.idea/**/tasks.xml
69+
.idea/**/usage.statistics.xml
70+
.idea/**/dictionaries
71+
.idea/**/shelf
72+
73+
# Generated files
74+
.idea/**/contentModel.xml
75+
76+
# Sensitive or high-churn files
77+
.idea/**/dataSources/
78+
.idea/**/dataSources.ids
79+
.idea/**/dataSources.local.xml
80+
.idea/**/sqlDataSources.xml
81+
.idea/**/dynamic.xml
82+
.idea/**/uiDesigner.xml
83+
.idea/**/dbnavigator.xml
84+
85+
# Gradle
86+
.idea/**/gradle.xml
87+
.idea/**/libraries
88+
89+
# Gradle and Maven with auto-import
90+
# When using Gradle or Maven with auto-import, you should exclude module files,
91+
# since they will be recreated, and may cause churn. Uncomment if using
92+
# auto-import.
93+
# .idea/modules.xml
94+
# .idea/*.iml
95+
# .idea/modules
96+
# *.iml
97+
# *.ipr
98+
99+
# CMake
100+
cmake-build-*/
101+
102+
# Mongo Explorer plugin
103+
.idea/**/mongoSettings.xml
104+
105+
# File-based project format
106+
*.iws
107+
108+
# IntelliJ
109+
out/
110+
111+
# mpeltonen/sbt-idea plugin
112+
.idea_modules/
113+
114+
# JIRA plugin
115+
atlassian-ide-plugin.xml
116+
117+
# Cursive Clojure plugin
118+
.idea/replstate.xml
119+
120+
# Crashlytics plugin (for Android Studio and IntelliJ)
121+
com_crashlytics_export_strings.xml
122+
crashlytics.properties
123+
crashlytics-build.properties
124+
fabric.properties
125+
126+
# Editor-based Rest Client
127+
.idea/httpRequests
128+
129+
# Android studio 3.1+ serialized cache file
130+
.idea/caches/build_file_checksums.ser
131+

.idea/ToggleBluetooth.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/ToggleBluetooth.xml

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/xcode.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ToggleBluetooth.xcodeproj/project.pbxproj

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
AB47595E22AF276F00D859D8 /* ApplicationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB47595D22AF276F00D859D8 /* ApplicationController.swift */; };
1011
AB5ECFFA22AC236500F2052D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB5ECFF922AC236500F2052D /* AppDelegate.swift */; };
11-
AB5ECFFC22AC236500F2052D /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB5ECFFB22AC236500F2052D /* ViewController.swift */; };
1212
AB5ECFFE22AC236600F2052D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AB5ECFFD22AC236600F2052D /* Assets.xcassets */; };
13-
AB5ED00122AC236600F2052D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AB5ECFFF22AC236600F2052D /* Main.storyboard */; };
13+
AB8D7F7422AE0ECB00E6E7A1 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = AB8D7F7322AE0ECB00E6E7A1 /* MainMenu.xib */; };
14+
CA635506539ACBAF6E956479 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = CA635396E88C080E1257019A /* LICENSE */; };
1415
/* End PBXBuildFile section */
1516

1617
/* Begin PBXFileReference section */
18+
AB47595D22AF276F00D859D8 /* ApplicationController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ApplicationController.swift; sourceTree = "<group>"; };
1719
AB5ECFF622AC236500F2052D /* ToggleBluetooth.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ToggleBluetooth.app; sourceTree = BUILT_PRODUCTS_DIR; };
1820
AB5ECFF922AC236500F2052D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
19-
AB5ECFFB22AC236500F2052D /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
2021
AB5ECFFD22AC236600F2052D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
21-
AB5ED00022AC236600F2052D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
2222
AB5ED00222AC236600F2052D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2323
AB5ED00322AC236600F2052D /* ToggleBluetooth.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ToggleBluetooth.entitlements; sourceTree = "<group>"; };
2424
AB5ED00B22AC36C500F2052D /* Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Header.h; sourceTree = "<group>"; };
2525
AB5ED00C22AC401100F2052D /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = SOURCE_ROOT; };
26+
AB8D7F7322AE0ECB00E6E7A1 /* MainMenu.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainMenu.xib; sourceTree = "<group>"; };
27+
CA635396E88C080E1257019A /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
2628
/* End PBXFileReference section */
2729

2830
/* Begin PBXFrameworksBuildPhase section */
@@ -41,6 +43,7 @@
4143
children = (
4244
AB5ECFF822AC236500F2052D /* ToggleBluetooth */,
4345
AB5ECFF722AC236500F2052D /* Products */,
46+
CA635396E88C080E1257019A /* LICENSE */,
4447
);
4548
sourceTree = "<group>";
4649
};
@@ -55,11 +58,11 @@
5558
AB5ECFF822AC236500F2052D /* ToggleBluetooth */ = {
5659
isa = PBXGroup;
5760
children = (
61+
AB47595D22AF276F00D859D8 /* ApplicationController.swift */,
62+
AB8D7F7322AE0ECB00E6E7A1 /* MainMenu.xib */,
5863
AB5ECFF922AC236500F2052D /* AppDelegate.swift */,
5964
AB5ED00B22AC36C500F2052D /* Header.h */,
60-
AB5ECFFB22AC236500F2052D /* ViewController.swift */,
6165
AB5ECFFD22AC236600F2052D /* Assets.xcassets */,
62-
AB5ECFFF22AC236600F2052D /* Main.storyboard */,
6366
AB5ED00222AC236600F2052D /* Info.plist */,
6467
AB5ED00C22AC401100F2052D /* README.md */,
6568
AB5ED00322AC236600F2052D /* ToggleBluetooth.entitlements */,
@@ -130,8 +133,9 @@
130133
isa = PBXResourcesBuildPhase;
131134
buildActionMask = 2147483647;
132135
files = (
136+
AB8D7F7422AE0ECB00E6E7A1 /* MainMenu.xib in Resources */,
133137
AB5ECFFE22AC236600F2052D /* Assets.xcassets in Resources */,
134-
AB5ED00122AC236600F2052D /* Main.storyboard in Resources */,
138+
CA635506539ACBAF6E956479 /* LICENSE in Resources */,
135139
);
136140
runOnlyForDeploymentPostprocessing = 0;
137141
};
@@ -142,24 +146,13 @@
142146
isa = PBXSourcesBuildPhase;
143147
buildActionMask = 2147483647;
144148
files = (
145-
AB5ECFFC22AC236500F2052D /* ViewController.swift in Sources */,
149+
AB47595E22AF276F00D859D8 /* ApplicationController.swift in Sources */,
146150
AB5ECFFA22AC236500F2052D /* AppDelegate.swift in Sources */,
147151
);
148152
runOnlyForDeploymentPostprocessing = 0;
149153
};
150154
/* End PBXSourcesBuildPhase section */
151155

152-
/* Begin PBXVariantGroup section */
153-
AB5ECFFF22AC236600F2052D /* Main.storyboard */ = {
154-
isa = PBXVariantGroup;
155-
children = (
156-
AB5ED00022AC236600F2052D /* Base */,
157-
);
158-
name = Main.storyboard;
159-
sourceTree = "<group>";
160-
};
161-
/* End PBXVariantGroup section */
162-
163156
/* Begin XCBuildConfiguration section */
164157
AB5ED00422AC236600F2052D /* Debug */ = {
165158
isa = XCBuildConfiguration;
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1020"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "AB5ECFF522AC236500F2052D"
18+
BuildableName = "ToggleBluetooth.app"
19+
BlueprintName = "ToggleBluetooth"
20+
ReferencedContainer = "container:ToggleBluetooth.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "AB5ECFF522AC236500F2052D"
36+
BuildableName = "ToggleBluetooth.app"
37+
BlueprintName = "ToggleBluetooth"
38+
ReferencedContainer = "container:ToggleBluetooth.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
41+
<AdditionalOptions>
42+
</AdditionalOptions>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Release"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
<BuildableProductRunnable
55+
runnableDebuggingMode = "0">
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "AB5ECFF522AC236500F2052D"
59+
BuildableName = "ToggleBluetooth.app"
60+
BlueprintName = "ToggleBluetooth"
61+
ReferencedContainer = "container:ToggleBluetooth.xcodeproj">
62+
</BuildableReference>
63+
</BuildableProductRunnable>
64+
<AdditionalOptions>
65+
</AdditionalOptions>
66+
</LaunchAction>
67+
<ProfileAction
68+
buildConfiguration = "Release"
69+
shouldUseLaunchSchemeArgsEnv = "YES"
70+
savedToolIdentifier = ""
71+
useCustomWorkingDirectory = "NO"
72+
debugDocumentVersioning = "YES">
73+
<BuildableProductRunnable
74+
runnableDebuggingMode = "0">
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "AB5ECFF522AC236500F2052D"
78+
BuildableName = "ToggleBluetooth.app"
79+
BlueprintName = "ToggleBluetooth"
80+
ReferencedContainer = "container:ToggleBluetooth.xcodeproj">
81+
</BuildableReference>
82+
</BuildableProductRunnable>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>

ToggleBluetooth.xcodeproj/xcuserdata/sn1p3r.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,13 @@
1010
<integer>0</integer>
1111
</dict>
1212
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>AB5ECFF522AC236500F2052D</key>
16+
<dict>
17+
<key>primary</key>
18+
<true />
19+
</dict>
20+
</dict>
1321
</dict>
1422
</plist>

0 commit comments

Comments
 (0)