Skip to content

Commit d2c23b1

Browse files
author
Vishal Telangre
authored
Redesign as a menubar app
1 parent 7cd6502 commit d2c23b1

19 files changed

Lines changed: 304 additions & 757 deletions

File tree

Kyapchar.xcodeproj/project.pbxproj

Lines changed: 58 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,25 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
08DE4F871DA00B9000D969DA /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08DE4F861DA00B9000D969DA /* AppDelegate.swift */; };
11-
08DE4F891DA00B9000D969DA /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 08DE4F881DA00B9000D969DA /* ViewController.swift */; };
12-
08DE4F8B1DA00B9000D969DA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 08DE4F8A1DA00B9000D969DA /* Assets.xcassets */; };
13-
08DE4F8E1DA00B9000D969DA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 08DE4F8C1DA00B9000D969DA /* Main.storyboard */; };
10+
086724DC1DC86E07007033BB /* Recorder.swift in Sources */ = {isa = PBXBuildFile; fileRef = 086724DB1DC86E07007033BB /* Recorder.swift */; };
11+
089CD7551DC7B742005067DB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 089CD7541DC7B742005067DB /* AppDelegate.swift */; };
12+
089CD7571DC7B742005067DB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 089CD7561DC7B742005067DB /* Assets.xcassets */; };
13+
089CD75A1DC7B742005067DB /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 089CD7581DC7B742005067DB /* MainMenu.xib */; };
14+
089CD7641DC85A3C005067DB /* MenuController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 089CD7631DC85A3C005067DB /* MenuController.swift */; };
1415
/* End PBXBuildFile section */
1516

1617
/* Begin PBXFileReference section */
17-
08DE4F831DA00B9000D969DA /* Kyapchar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Kyapchar.app; sourceTree = BUILT_PRODUCTS_DIR; };
18-
08DE4F861DA00B9000D969DA /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
19-
08DE4F881DA00B9000D969DA /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
20-
08DE4F8A1DA00B9000D969DA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
21-
08DE4F8D1DA00B9000D969DA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
22-
08DE4F8F1DA00B9000D969DA /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
18+
086724DB1DC86E07007033BB /* Recorder.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Recorder.swift; sourceTree = "<group>"; };
19+
089CD7511DC7B742005067DB /* Kyapchar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Kyapchar.app; sourceTree = BUILT_PRODUCTS_DIR; };
20+
089CD7541DC7B742005067DB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
21+
089CD7561DC7B742005067DB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
22+
089CD7591DC7B742005067DB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
23+
089CD75B1DC7B742005067DB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
24+
089CD7631DC85A3C005067DB /* MenuController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MenuController.swift; sourceTree = "<group>"; };
2325
/* End PBXFileReference section */
2426

2527
/* Begin PBXFrameworksBuildPhase section */
26-
08DE4F801DA00B9000D969DA /* Frameworks */ = {
28+
089CD74E1DC7B742005067DB /* Frameworks */ = {
2729
isa = PBXFrameworksBuildPhase;
2830
buildActionMask = 2147483647;
2931
files = (
@@ -33,124 +35,126 @@
3335
/* End PBXFrameworksBuildPhase section */
3436

3537
/* Begin PBXGroup section */
36-
08DE4F7A1DA00B9000D969DA = {
38+
089CD7481DC7B742005067DB = {
3739
isa = PBXGroup;
3840
children = (
39-
08DE4F851DA00B9000D969DA /* Kyapchar */,
40-
08DE4F841DA00B9000D969DA /* Products */,
41+
089CD7531DC7B742005067DB /* Kyapchar */,
42+
089CD7521DC7B742005067DB /* Products */,
4143
);
4244
sourceTree = "<group>";
4345
};
44-
08DE4F841DA00B9000D969DA /* Products */ = {
46+
089CD7521DC7B742005067DB /* Products */ = {
4547
isa = PBXGroup;
4648
children = (
47-
08DE4F831DA00B9000D969DA /* Kyapchar.app */,
49+
089CD7511DC7B742005067DB /* Kyapchar.app */,
4850
);
4951
name = Products;
5052
sourceTree = "<group>";
5153
};
52-
08DE4F851DA00B9000D969DA /* Kyapchar */ = {
54+
089CD7531DC7B742005067DB /* Kyapchar */ = {
5355
isa = PBXGroup;
5456
children = (
55-
08DE4F861DA00B9000D969DA /* AppDelegate.swift */,
56-
08DE4F881DA00B9000D969DA /* ViewController.swift */,
57-
08DE4F8A1DA00B9000D969DA /* Assets.xcassets */,
58-
08DE4F8C1DA00B9000D969DA /* Main.storyboard */,
59-
08DE4F8F1DA00B9000D969DA /* Info.plist */,
57+
089CD7631DC85A3C005067DB /* MenuController.swift */,
58+
086724DB1DC86E07007033BB /* Recorder.swift */,
59+
089CD7541DC7B742005067DB /* AppDelegate.swift */,
60+
089CD7561DC7B742005067DB /* Assets.xcassets */,
61+
089CD7581DC7B742005067DB /* MainMenu.xib */,
62+
089CD75B1DC7B742005067DB /* Info.plist */,
6063
);
6164
path = Kyapchar;
6265
sourceTree = "<group>";
6366
};
6467
/* End PBXGroup section */
6568

6669
/* Begin PBXNativeTarget section */
67-
08DE4F821DA00B9000D969DA /* Kyapchar */ = {
70+
089CD7501DC7B742005067DB /* Kyapchar */ = {
6871
isa = PBXNativeTarget;
69-
buildConfigurationList = 08DE4F921DA00B9000D969DA /* Build configuration list for PBXNativeTarget "Kyapchar" */;
72+
buildConfigurationList = 089CD75E1DC7B742005067DB /* Build configuration list for PBXNativeTarget "Kyapchar" */;
7073
buildPhases = (
71-
08DE4F7F1DA00B9000D969DA /* Sources */,
72-
08DE4F801DA00B9000D969DA /* Frameworks */,
73-
08DE4F811DA00B9000D969DA /* Resources */,
74+
089CD74D1DC7B742005067DB /* Sources */,
75+
089CD74E1DC7B742005067DB /* Frameworks */,
76+
089CD74F1DC7B742005067DB /* Resources */,
7477
);
7578
buildRules = (
7679
);
7780
dependencies = (
7881
);
7982
name = Kyapchar;
8083
productName = Kyapchar;
81-
productReference = 08DE4F831DA00B9000D969DA /* Kyapchar.app */;
84+
productReference = 089CD7511DC7B742005067DB /* Kyapchar.app */;
8285
productType = "com.apple.product-type.application";
8386
};
8487
/* End PBXNativeTarget section */
8588

8689
/* Begin PBXProject section */
87-
08DE4F7B1DA00B9000D969DA /* Project object */ = {
90+
089CD7491DC7B742005067DB /* Project object */ = {
8891
isa = PBXProject;
8992
attributes = {
9093
LastSwiftUpdateCheck = 0730;
9194
LastUpgradeCheck = 0730;
9295
ORGANIZATIONNAME = "Vishal Telangre";
9396
TargetAttributes = {
94-
08DE4F821DA00B9000D969DA = {
97+
089CD7501DC7B742005067DB = {
9598
CreatedOnToolsVersion = 7.3.1;
9699
};
97100
};
98101
};
99-
buildConfigurationList = 08DE4F7E1DA00B9000D969DA /* Build configuration list for PBXProject "Kyapchar" */;
102+
buildConfigurationList = 089CD74C1DC7B742005067DB /* Build configuration list for PBXProject "Kyapchar" */;
100103
compatibilityVersion = "Xcode 3.2";
101104
developmentRegion = English;
102105
hasScannedForEncodings = 0;
103106
knownRegions = (
104107
en,
105108
Base,
106109
);
107-
mainGroup = 08DE4F7A1DA00B9000D969DA;
108-
productRefGroup = 08DE4F841DA00B9000D969DA /* Products */;
110+
mainGroup = 089CD7481DC7B742005067DB;
111+
productRefGroup = 089CD7521DC7B742005067DB /* Products */;
109112
projectDirPath = "";
110113
projectRoot = "";
111114
targets = (
112-
08DE4F821DA00B9000D969DA /* Kyapchar */,
115+
089CD7501DC7B742005067DB /* Kyapchar */,
113116
);
114117
};
115118
/* End PBXProject section */
116119

117120
/* Begin PBXResourcesBuildPhase section */
118-
08DE4F811DA00B9000D969DA /* Resources */ = {
121+
089CD74F1DC7B742005067DB /* Resources */ = {
119122
isa = PBXResourcesBuildPhase;
120123
buildActionMask = 2147483647;
121124
files = (
122-
08DE4F8B1DA00B9000D969DA /* Assets.xcassets in Resources */,
123-
08DE4F8E1DA00B9000D969DA /* Main.storyboard in Resources */,
125+
089CD7571DC7B742005067DB /* Assets.xcassets in Resources */,
126+
089CD75A1DC7B742005067DB /* MainMenu.xib in Resources */,
124127
);
125128
runOnlyForDeploymentPostprocessing = 0;
126129
};
127130
/* End PBXResourcesBuildPhase section */
128131

129132
/* Begin PBXSourcesBuildPhase section */
130-
08DE4F7F1DA00B9000D969DA /* Sources */ = {
133+
089CD74D1DC7B742005067DB /* Sources */ = {
131134
isa = PBXSourcesBuildPhase;
132135
buildActionMask = 2147483647;
133136
files = (
134-
08DE4F891DA00B9000D969DA /* ViewController.swift in Sources */,
135-
08DE4F871DA00B9000D969DA /* AppDelegate.swift in Sources */,
137+
086724DC1DC86E07007033BB /* Recorder.swift in Sources */,
138+
089CD7551DC7B742005067DB /* AppDelegate.swift in Sources */,
139+
089CD7641DC85A3C005067DB /* MenuController.swift in Sources */,
136140
);
137141
runOnlyForDeploymentPostprocessing = 0;
138142
};
139143
/* End PBXSourcesBuildPhase section */
140144

141145
/* Begin PBXVariantGroup section */
142-
08DE4F8C1DA00B9000D969DA /* Main.storyboard */ = {
146+
089CD7581DC7B742005067DB /* MainMenu.xib */ = {
143147
isa = PBXVariantGroup;
144148
children = (
145-
08DE4F8D1DA00B9000D969DA /* Base */,
149+
089CD7591DC7B742005067DB /* Base */,
146150
);
147-
name = Main.storyboard;
151+
name = MainMenu.xib;
148152
sourceTree = "<group>";
149153
};
150154
/* End PBXVariantGroup section */
151155

152156
/* Begin XCBuildConfiguration section */
153-
08DE4F901DA00B9000D969DA /* Debug */ = {
157+
089CD75C1DC7B742005067DB /* Debug */ = {
154158
isa = XCBuildConfiguration;
155159
buildSettings = {
156160
ALWAYS_SEARCH_USER_PATHS = NO;
@@ -195,7 +199,7 @@
195199
};
196200
name = Debug;
197201
};
198-
08DE4F911DA00B9000D969DA /* Release */ = {
202+
089CD75D1DC7B742005067DB /* Release */ = {
199203
isa = XCBuildConfiguration;
200204
buildSettings = {
201205
ALWAYS_SEARCH_USER_PATHS = NO;
@@ -232,7 +236,7 @@
232236
};
233237
name = Release;
234238
};
235-
08DE4F931DA00B9000D969DA /* Debug */ = {
239+
089CD75F1DC7B742005067DB /* Debug */ = {
236240
isa = XCBuildConfiguration;
237241
buildSettings = {
238242
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
@@ -244,7 +248,7 @@
244248
};
245249
name = Debug;
246250
};
247-
08DE4F941DA00B9000D969DA /* Release */ = {
251+
089CD7601DC7B742005067DB /* Release */ = {
248252
isa = XCBuildConfiguration;
249253
buildSettings = {
250254
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
@@ -259,25 +263,25 @@
259263
/* End XCBuildConfiguration section */
260264

261265
/* Begin XCConfigurationList section */
262-
08DE4F7E1DA00B9000D969DA /* Build configuration list for PBXProject "Kyapchar" */ = {
266+
089CD74C1DC7B742005067DB /* Build configuration list for PBXProject "Kyapchar" */ = {
263267
isa = XCConfigurationList;
264268
buildConfigurations = (
265-
08DE4F901DA00B9000D969DA /* Debug */,
266-
08DE4F911DA00B9000D969DA /* Release */,
269+
089CD75C1DC7B742005067DB /* Debug */,
270+
089CD75D1DC7B742005067DB /* Release */,
267271
);
268272
defaultConfigurationIsVisible = 0;
269273
defaultConfigurationName = Release;
270274
};
271-
08DE4F921DA00B9000D969DA /* Build configuration list for PBXNativeTarget "Kyapchar" */ = {
275+
089CD75E1DC7B742005067DB /* Build configuration list for PBXNativeTarget "Kyapchar" */ = {
272276
isa = XCConfigurationList;
273277
buildConfigurations = (
274-
08DE4F931DA00B9000D969DA /* Debug */,
275-
08DE4F941DA00B9000D969DA /* Release */,
278+
089CD75F1DC7B742005067DB /* Debug */,
279+
089CD7601DC7B742005067DB /* Release */,
276280
);
277281
defaultConfigurationIsVisible = 0;
278282
defaultConfigurationName = Release;
279283
};
280284
/* End XCConfigurationList section */
281285
};
282-
rootObject = 08DE4F7B1DA00B9000D969DA /* Project object */;
286+
rootObject = 089CD7491DC7B742005067DB /* Project object */;
283287
}

Kyapchar.xcodeproj/xcuserdata/vishaltelangre.xcuserdatad/xcschemes/Kyapchar.xcscheme

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
buildForAnalyzing = "YES">
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
17-
BlueprintIdentifier = "08DE4F821DA00B9000D969DA"
17+
BlueprintIdentifier = "089CD7501DC7B742005067DB"
1818
BuildableName = "Kyapchar.app"
1919
BlueprintName = "Kyapchar"
2020
ReferencedContainer = "container:Kyapchar.xcodeproj">
@@ -32,7 +32,7 @@
3232
<MacroExpansion>
3333
<BuildableReference
3434
BuildableIdentifier = "primary"
35-
BlueprintIdentifier = "08DE4F821DA00B9000D969DA"
35+
BlueprintIdentifier = "089CD7501DC7B742005067DB"
3636
BuildableName = "Kyapchar.app"
3737
BlueprintName = "Kyapchar"
3838
ReferencedContainer = "container:Kyapchar.xcodeproj">
@@ -55,7 +55,7 @@
5555
runnableDebuggingMode = "0">
5656
<BuildableReference
5757
BuildableIdentifier = "primary"
58-
BlueprintIdentifier = "08DE4F821DA00B9000D969DA"
58+
BlueprintIdentifier = "089CD7501DC7B742005067DB"
5959
BuildableName = "Kyapchar.app"
6060
BlueprintName = "Kyapchar"
6161
ReferencedContainer = "container:Kyapchar.xcodeproj">
@@ -74,7 +74,7 @@
7474
runnableDebuggingMode = "0">
7575
<BuildableReference
7676
BuildableIdentifier = "primary"
77-
BlueprintIdentifier = "08DE4F821DA00B9000D969DA"
77+
BlueprintIdentifier = "089CD7501DC7B742005067DB"
7878
BuildableName = "Kyapchar.app"
7979
BlueprintName = "Kyapchar"
8080
ReferencedContainer = "container:Kyapchar.xcodeproj">

Kyapchar.xcodeproj/xcuserdata/vishaltelangre.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</dict>
1313
<key>SuppressBuildableAutocreation</key>
1414
<dict>
15-
<key>08DE4F821DA00B9000D969DA</key>
15+
<key>089CD7501DC7B742005067DB</key>
1616
<dict>
1717
<key>primary</key>
1818
<true/>

Kyapchar/AppDelegate.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@
22
// AppDelegate.swift
33
// Kyapchar
44
//
5-
// Created by Vishal Telangre on 10/1/16.
5+
// Created by Vishal Telangre on 10/31/16.
66
// Copyright © 2016 Vishal Telangre. All rights reserved.
77
//
88

99
import Cocoa
1010

1111
@NSApplicationMain
1212
class AppDelegate: NSObject, NSApplicationDelegate {
13-
14-
15-
13+
1614
func applicationDidFinishLaunching(aNotification: NSNotification) {
1715
// Insert code here to initialize your application
1816
}
@@ -21,6 +19,5 @@ class AppDelegate: NSObject, NSApplicationDelegate {
2119
// Insert code here to tear down your application
2220
}
2321

24-
2522
}
2623

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
22
"images" : [
33
{
4-
"idiom" : "universal",
4+
"idiom" : "mac",
55
"scale" : "1x"
66
},
77
{
8-
"idiom" : "universal",
8+
"idiom" : "mac",
99
"filename" : "pause.png",
1010
"scale" : "2x"
11-
},
12-
{
13-
"idiom" : "universal",
14-
"scale" : "3x"
1511
}
1612
],
1713
"info" : {
1814
"version" : 1,
1915
"author" : "xcode"
16+
},
17+
"properties" : {
18+
"template-rendering-intent" : "template"
2019
}
2120
}
268 Bytes
Loading
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
{
22
"images" : [
33
{
4-
"idiom" : "universal",
4+
"idiom" : "mac",
55
"scale" : "1x"
66
},
77
{
8-
"idiom" : "universal",
8+
"idiom" : "mac",
99
"filename" : "record.png",
1010
"scale" : "2x"
11-
},
12-
{
13-
"idiom" : "universal",
14-
"scale" : "3x"
1511
}
1612
],
1713
"info" : {
1814
"version" : 1,
1915
"author" : "xcode"
16+
},
17+
"properties" : {
18+
"template-rendering-intent" : "template"
2019
}
2120
}
-20.1 KB
Loading

0 commit comments

Comments
 (0)