瀏覽代碼

Can finally open on login.

Now it still generates error messages in the Console, but still runs on login…?!
Thomas Buck 11 年之前
父節點
當前提交
92735898b5

RedditBar/RedditBar.entitlements → BaconBar.entitlements 查看文件


+ 12
- 11
BaconBar.xcodeproj/project.pbxproj 查看文件

@@ -59,6 +59,7 @@
59 59
 		E9341913184A1A1A00D03488 /* StateModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = StateModel.m; sourceTree = "<group>"; };
60 60
 		E934191A184A47DE00D03488 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/Prefs.xib; sourceTree = "<group>"; };
61 61
 		E97FD65F185232D5006B5B3E /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Prefs.strings; sourceTree = "<group>"; };
62
+		E98FE550186F6ED800A94AAC /* BaconBar.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = BaconBar.entitlements; path = ../BaconBar.entitlements; sourceTree = "<group>"; };
62 63
 		E9A129AF184BD24000F50D1D /* RedditItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RedditItem.h; sourceTree = "<group>"; };
63 64
 		E9A129B0184BD24000F50D1D /* RedditItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RedditItem.m; sourceTree = "<group>"; };
64 65
 		E9A72EF0186F66EC009ECE8C /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/MainMenu.strings; sourceTree = "<group>"; };
@@ -83,7 +84,6 @@
83 84
 		E9CF1F3F184961020004AE02 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
84 85
 		E9CF1F5A1849685C0004AE02 /* PrefController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrefController.h; sourceTree = "<group>"; };
85 86
 		E9CF1F5B1849685C0004AE02 /* PrefController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PrefController.m; sourceTree = "<group>"; };
86
-		E9F64A2B185D51C100D6CA16 /* RedditBar.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = RedditBar.entitlements; sourceTree = "<group>"; };
87 87
 		E9F64A2C185E1E2900D6CA16 /* PrefWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PrefWindow.h; sourceTree = "<group>"; };
88 88
 		E9F64A2D185E1E2900D6CA16 /* PrefWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PrefWindow.m; sourceTree = "<group>"; };
89 89
 /* End PBXFileReference section */
@@ -113,7 +113,7 @@
113 113
 			isa = PBXGroup;
114 114
 			children = (
115 115
 				E9BA9EA9186F63C400D147BC /* BaconBarHelper.xcodeproj */,
116
-				E9CF1F26184961010004AE02 /* RedditBar */,
116
+				E9CF1F26184961010004AE02 /* BaconBar */,
117 117
 				E9CF1F1F184961010004AE02 /* Frameworks */,
118 118
 				E9CF1F1E184961010004AE02 /* Products */,
119 119
 			);
@@ -148,10 +148,10 @@
148 148
 			name = "Other Frameworks";
149 149
 			sourceTree = "<group>";
150 150
 		};
151
-		E9CF1F26184961010004AE02 /* RedditBar */ = {
151
+		E9CF1F26184961010004AE02 /* BaconBar */ = {
152 152
 			isa = PBXGroup;
153 153
 			children = (
154
-				E9F64A2B185D51C100D6CA16 /* RedditBar.entitlements */,
154
+				E98FE550186F6ED800A94AAC /* BaconBar.entitlements */,
155 155
 				E9CF1F32184961010004AE02 /* AppDelegate.h */,
156 156
 				E9CF1F33184961010004AE02 /* AppDelegate.m */,
157 157
 				E9B6773C184B73DC00850559 /* Reddit.h */,
@@ -170,6 +170,7 @@
170 170
 				E9CF1F38184961020004AE02 /* Images.xcassets */,
171 171
 				E9CF1F27184961010004AE02 /* Supporting Files */,
172 172
 			);
173
+			name = BaconBar;
173 174
 			path = RedditBar;
174 175
 			sourceTree = "<group>";
175 176
 		};
@@ -304,7 +305,7 @@
304 305
 			);
305 306
 			runOnlyForDeploymentPostprocessing = 0;
306 307
 			shellPath = /bin/sh;
307
-			shellScript = "# update_storyboard_strings.sh - automatically extract translatable strings from storyboards and update strings files\n# Based on http://forums.macrumors.com/showpost.php?p=16060008&postcount=4 by mikezang\n\n# Also regenerate Localizable.strings\nfind . -name \\*.m | xargs genstrings -o en.lproj\n\nstoryboardExt=\".xib\"\nstringsExt=\".strings\"\nnewStringsExt=\".strings.new\"\noldStringsExt=\".strings.old\"\nlocaleDirExt=\".lproj\"\n\n# Find storyboard file full path inside project folder\nfor storyboardPath in `find . -name \"*$storyboardExt\" -print`\ndo\n# Get Base strings file full path\nbaseStringsPath=$(echo \"$storyboardPath\" | sed \"s/$storyboardExt/$stringsExt/\")\n\n# Create base strings file if it doesn't exist\nif ! [ -f $baseStringsPath ]; then\ntouch -r $storyboardPath $baseStringsPath\n# Make base strings file older than the storyboard file\ntouch -A -01 $baseStringsPath\nfi\n\n# Create strings file only when storyboard file newer\nif find $storyboardPath -prune -newer $baseStringsPath -print | grep -q .; then\n# Get storyboard file name and folder\nstoryboardFile=$(basename \"$storyboardPath\")\nstoryboardDir=$(dirname \"$storyboardPath\")\n\n# Get New Base strings file full path and strings file name\nnewBaseStringsPath=$(echo \"$storyboardPath\" | sed \"s/$storyboardExt/$newStringsExt/\")\nstringsFile=$(basename \"$baseStringsPath\")\nibtool --export-strings-file $newBaseStringsPath $storyboardPath\niconv -f UTF-16 -t UTF-8 $newBaseStringsPath > $baseStringsPath\nrm $newBaseStringsPath\n\n# Get all locale strings folder\nfor localeStringsDir in `find . -name \"*$localeDirExt\" -print`\ndo\n# Skip Base strings folder\nif [ $localeStringsDir != $storyboardDir ]; then\nlocaleStringsPath=$localeStringsDir/$stringsFile\n\n# Just copy base strings file on first time\nif [ ! -e $localeStringsPath ]; then\ncp $baseStringsPath $localeStringsPath\nelse\noldLocaleStringsPath=$(echo \"$localeStringsPath\" | sed \"s/$stringsExt/$oldStringsExt/\")\ncp $localeStringsPath $oldLocaleStringsPath\n\n# Merge baseStringsPath to localeStringsPath\nawk 'NR == FNR && /^\\/\\*/ {x=$0; getline; a[x]=$0; next} /^\\/\\*/ {x=$0; print; getline; $0=a[x]?a[x]:$0; printf $0\"\\n\\n\"}' $oldLocaleStringsPath $baseStringsPath > $localeStringsPath\n\nrm $oldLocaleStringsPath\nfi\nfi\ndone\nelse\necho \"$storyboardPath file not modified.\"\nfi\ndone";
308
+			shellScript = "# update_storyboard_strings.sh - automatically extract translatable strings from storyboards and update strings files\n# Based on http://forums.macrumors.com/showpost.php?p=16060008&postcount=4 by mikezang\n\n# Also regenerate Localizable.strings\nfind . -name RedditBar\\*.m | xargs genstrings -o en.lproj\n\nstoryboardExt=\".xib\"\nstringsExt=\".strings\"\nnewStringsExt=\".strings.new\"\noldStringsExt=\".strings.old\"\nlocaleDirExt=\".lproj\"\n\n# Find storyboard file full path inside project folder\nfor storyboardPath in `find . -name \"*$storyboardExt\" -print`\ndo\n# Get Base strings file full path\nbaseStringsPath=$(echo \"$storyboardPath\" | sed \"s/$storyboardExt/$stringsExt/\")\n\n# Create base strings file if it doesn't exist\nif ! [ -f $baseStringsPath ]; then\ntouch -r $storyboardPath $baseStringsPath\n# Make base strings file older than the storyboard file\ntouch -A -01 $baseStringsPath\nfi\n\n# Create strings file only when storyboard file newer\nif find $storyboardPath -prune -newer $baseStringsPath -print | grep -q .; then\n# Get storyboard file name and folder\nstoryboardFile=$(basename \"$storyboardPath\")\nstoryboardDir=$(dirname \"$storyboardPath\")\n\n# Get New Base strings file full path and strings file name\nnewBaseStringsPath=$(echo \"$storyboardPath\" | sed \"s/$storyboardExt/$newStringsExt/\")\nstringsFile=$(basename \"$baseStringsPath\")\nibtool --export-strings-file $newBaseStringsPath $storyboardPath\niconv -f UTF-16 -t UTF-8 $newBaseStringsPath > $baseStringsPath\nrm $newBaseStringsPath\n\n# Get all locale strings folder\nfor localeStringsDir in `find . -name \"*$localeDirExt\" -print`\ndo\n# Skip Base strings folder\nif [ $localeStringsDir != $storyboardDir ]; then\nlocaleStringsPath=$localeStringsDir/$stringsFile\n\n# Just copy base strings file on first time\nif [ ! -e $localeStringsPath ]; then\ncp $baseStringsPath $localeStringsPath\nelse\noldLocaleStringsPath=$(echo \"$localeStringsPath\" | sed \"s/$stringsExt/$oldStringsExt/\")\ncp $localeStringsPath $oldLocaleStringsPath\n\n# Merge baseStringsPath to localeStringsPath\nawk 'NR == FNR && /^\\/\\*/ {x=$0; getline; a[x]=$0; next} /^\\/\\*/ {x=$0; print; getline; $0=a[x]?a[x]:$0; printf $0\"\\n\\n\"}' $oldLocaleStringsPath $baseStringsPath > $localeStringsPath\n\nrm $oldLocaleStringsPath\nfi\nfi\ndone\nelse\necho \"$storyboardPath file not modified.\"\nfi\ndone";
308 309
 		};
309 310
 /* End PBXShellScriptBuildPhase section */
310 311
 
@@ -448,15 +449,15 @@
448 449
 			isa = XCBuildConfiguration;
449 450
 			buildSettings = {
450 451
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
451
-				CODE_SIGN_ENTITLEMENTS = RedditBar/RedditBar.entitlements;
452
-				CODE_SIGN_IDENTITY = "Mac Developer";
452
+				CODE_SIGN_ENTITLEMENTS = BaconBar.entitlements;
453
+				CODE_SIGN_IDENTITY = "Developer ID Application";
453 454
 				COMBINE_HIDPI_IMAGES = YES;
454 455
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
455 456
 				GCC_PREFIX_HEADER = "RedditBar/BaconBar-Prefix.pch";
456 457
 				INFOPLIST_FILE = "RedditBar/BaconBar-Info.plist";
457 458
 				MACOSX_DEPLOYMENT_TARGET = 10.8;
458 459
 				PRODUCT_NAME = BaconBar;
459
-				PROVISIONING_PROFILE = "91F7EAB0-5C24-4F36-8C57-13FA38F4FF88";
460
+				PROVISIONING_PROFILE = "";
460 461
 				SDKROOT = macosx10.8;
461 462
 				WRAPPER_EXTENSION = app;
462 463
 			};
@@ -467,8 +468,8 @@
467 468
 			buildSettings = {
468 469
 				ARCHS = "$(ARCHS_STANDARD)";
469 470
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
470
-				CODE_SIGN_ENTITLEMENTS = RedditBar/RedditBar.entitlements;
471
-				CODE_SIGN_IDENTITY = "Mac Developer";
471
+				CODE_SIGN_ENTITLEMENTS = BaconBar.entitlements;
472
+				CODE_SIGN_IDENTITY = "Developer ID Application";
472 473
 				COMBINE_HIDPI_IMAGES = YES;
473 474
 				COPY_PHASE_STRIP = NO;
474 475
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
@@ -476,7 +477,7 @@
476 477
 				INFOPLIST_FILE = "RedditBar/BaconBar-Info.plist";
477 478
 				MACOSX_DEPLOYMENT_TARGET = 10.8;
478 479
 				PRODUCT_NAME = BaconBar;
479
-				PROVISIONING_PROFILE = "91F7EAB0-5C24-4F36-8C57-13FA38F4FF88";
480
+				PROVISIONING_PROFILE = "";
480 481
 				SDKROOT = macosx10.8;
481 482
 				WRAPPER_EXTENSION = app;
482 483
 			};

+ 21
- 41
BaconBarHelper.xcodeproj/project.pbxproj 查看文件

@@ -8,11 +8,8 @@
8 8
 
9 9
 /* Begin PBXBuildFile section */
10 10
 		E922AEFB186F5F790038E4D7 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E922AEFA186F5F790038E4D7 /* Cocoa.framework */; };
11
-		E922AF05186F5F790038E4D7 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = E922AF03186F5F790038E4D7 /* InfoPlist.strings */; };
12 11
 		E922AF07186F5F790038E4D7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = E922AF06186F5F790038E4D7 /* main.m */; };
13
-		E922AF0B186F5F790038E4D7 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = E922AF09186F5F790038E4D7 /* Credits.rtf */; };
14 12
 		E922AF0E186F5F790038E4D7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E922AF0D186F5F790038E4D7 /* AppDelegate.m */; };
15
-		E922AF11186F5F790038E4D7 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = E922AF0F186F5F790038E4D7 /* MainMenu.xib */; };
16 13
 		E922AF13186F5F790038E4D7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E922AF12186F5F790038E4D7 /* Images.xcassets */; };
17 14
 /* End PBXBuildFile section */
18 15
 
@@ -23,13 +20,10 @@
23 20
 		E922AEFE186F5F790038E4D7 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
24 21
 		E922AEFF186F5F790038E4D7 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
25 22
 		E922AF02186F5F790038E4D7 /* BaconBarHelper-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "BaconBarHelper-Info.plist"; sourceTree = "<group>"; };
26
-		E922AF04186F5F790038E4D7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
27 23
 		E922AF06186F5F790038E4D7 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
28 24
 		E922AF08186F5F790038E4D7 /* BaconBarHelper-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BaconBarHelper-Prefix.pch"; sourceTree = "<group>"; };
29
-		E922AF0A186F5F790038E4D7 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = en; path = en.lproj/Credits.rtf; sourceTree = "<group>"; };
30 25
 		E922AF0C186F5F790038E4D7 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
31 26
 		E922AF0D186F5F790038E4D7 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
32
-		E922AF10186F5F790038E4D7 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
33 27
 		E922AF12186F5F790038E4D7 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
34 28
 		E922AF19186F5F790038E4D7 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
35 29
 		E922AF3C186F60E60038E4D7 /* BaconBarHelper.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = BaconBarHelper.entitlements; sourceTree = "<group>"; };
@@ -90,7 +84,6 @@
90 84
 				E922AF3C186F60E60038E4D7 /* BaconBarHelper.entitlements */,
91 85
 				E922AF0C186F5F790038E4D7 /* AppDelegate.h */,
92 86
 				E922AF0D186F5F790038E4D7 /* AppDelegate.m */,
93
-				E922AF0F186F5F790038E4D7 /* MainMenu.xib */,
94 87
 				E922AF12186F5F790038E4D7 /* Images.xcassets */,
95 88
 				E922AF01186F5F790038E4D7 /* Supporting Files */,
96 89
 			);
@@ -101,10 +94,8 @@
101 94
 			isa = PBXGroup;
102 95
 			children = (
103 96
 				E922AF02186F5F790038E4D7 /* BaconBarHelper-Info.plist */,
104
-				E922AF03186F5F790038E4D7 /* InfoPlist.strings */,
105 97
 				E922AF06186F5F790038E4D7 /* main.m */,
106 98
 				E922AF08186F5F790038E4D7 /* BaconBarHelper-Prefix.pch */,
107
-				E922AF09186F5F790038E4D7 /* Credits.rtf */,
108 99
 			);
109 100
 			name = "Supporting Files";
110 101
 			sourceTree = "<group>";
@@ -118,6 +109,7 @@
118 109
 			buildPhases = (
119 110
 				E922AEF3186F5F790038E4D7 /* Sources */,
120 111
 				E922AEF4186F5F790038E4D7 /* Frameworks */,
112
+				E98FE54E186F680000A94AAC /* ShellScript */,
121 113
 				E922AEF5186F5F790038E4D7 /* Resources */,
122 114
 			);
123 115
 			buildRules = (
@@ -171,15 +163,28 @@
171 163
 			isa = PBXResourcesBuildPhase;
172 164
 			buildActionMask = 2147483647;
173 165
 			files = (
174
-				E922AF05186F5F790038E4D7 /* InfoPlist.strings in Resources */,
175 166
 				E922AF13186F5F790038E4D7 /* Images.xcassets in Resources */,
176
-				E922AF0B186F5F790038E4D7 /* Credits.rtf in Resources */,
177
-				E922AF11186F5F790038E4D7 /* MainMenu.xib in Resources */,
178 167
 			);
179 168
 			runOnlyForDeploymentPostprocessing = 0;
180 169
 		};
181 170
 /* End PBXResourcesBuildPhase section */
182 171
 
172
+/* Begin PBXShellScriptBuildPhase section */
173
+		E98FE54E186F680000A94AAC /* ShellScript */ = {
174
+			isa = PBXShellScriptBuildPhase;
175
+			buildActionMask = 2147483647;
176
+			files = (
177
+			);
178
+			inputPaths = (
179
+			);
180
+			outputPaths = (
181
+			);
182
+			runOnlyForDeploymentPostprocessing = 0;
183
+			shellPath = /bin/sh;
184
+			shellScript = "buildNumber=$(/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\")\nbuildNumber=$(($buildNumber + 1))\n/usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $buildNumber\" \"${PROJECT_DIR}/${INFOPLIST_FILE}\"";
185
+		};
186
+/* End PBXShellScriptBuildPhase section */
187
+
183 188
 /* Begin PBXSourcesBuildPhase section */
184 189
 		E922AEF3186F5F790038E4D7 /* Sources */ = {
185 190
 			isa = PBXSourcesBuildPhase;
@@ -192,33 +197,6 @@
192 197
 		};
193 198
 /* End PBXSourcesBuildPhase section */
194 199
 
195
-/* Begin PBXVariantGroup section */
196
-		E922AF03186F5F790038E4D7 /* InfoPlist.strings */ = {
197
-			isa = PBXVariantGroup;
198
-			children = (
199
-				E922AF04186F5F790038E4D7 /* en */,
200
-			);
201
-			name = InfoPlist.strings;
202
-			sourceTree = "<group>";
203
-		};
204
-		E922AF09186F5F790038E4D7 /* Credits.rtf */ = {
205
-			isa = PBXVariantGroup;
206
-			children = (
207
-				E922AF0A186F5F790038E4D7 /* en */,
208
-			);
209
-			name = Credits.rtf;
210
-			sourceTree = "<group>";
211
-		};
212
-		E922AF0F186F5F790038E4D7 /* MainMenu.xib */ = {
213
-			isa = PBXVariantGroup;
214
-			children = (
215
-				E922AF10186F5F790038E4D7 /* Base */,
216
-			);
217
-			name = MainMenu.xib;
218
-			sourceTree = "<group>";
219
-		};
220
-/* End PBXVariantGroup section */
221
-
222 200
 /* Begin XCBuildConfiguration section */
223 201
 		E922AF26186F5F790038E4D7 /* Debug */ = {
224 202
 			isa = XCBuildConfiguration;
@@ -293,11 +271,12 @@
293 271
 			buildSettings = {
294 272
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
295 273
 				CODE_SIGN_ENTITLEMENTS = BaconBarHelper/BaconBarHelper.entitlements;
296
-				CODE_SIGN_IDENTITY = "Mac Developer";
274
+				CODE_SIGN_IDENTITY = "Developer ID Application";
297 275
 				COMBINE_HIDPI_IMAGES = YES;
298 276
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
299 277
 				GCC_PREFIX_HEADER = "BaconBarHelper/BaconBarHelper-Prefix.pch";
300 278
 				INFOPLIST_FILE = "BaconBarHelper/BaconBarHelper-Info.plist";
279
+				MACOSX_DEPLOYMENT_TARGET = 10.8;
301 280
 				PRODUCT_NAME = "$(TARGET_NAME)";
302 281
 				SKIP_INSTALL = YES;
303 282
 				WRAPPER_EXTENSION = app;
@@ -309,11 +288,12 @@
309 288
 			buildSettings = {
310 289
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311 290
 				CODE_SIGN_ENTITLEMENTS = BaconBarHelper/BaconBarHelper.entitlements;
312
-				CODE_SIGN_IDENTITY = "Mac Developer";
291
+				CODE_SIGN_IDENTITY = "Developer ID Application";
313 292
 				COMBINE_HIDPI_IMAGES = YES;
314 293
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
315 294
 				GCC_PREFIX_HEADER = "BaconBarHelper/BaconBarHelper-Prefix.pch";
316 295
 				INFOPLIST_FILE = "BaconBarHelper/BaconBarHelper-Info.plist";
296
+				MACOSX_DEPLOYMENT_TARGET = 10.8;
317 297
 				PRODUCT_NAME = "$(TARGET_NAME)";
318 298
 				SKIP_INSTALL = YES;
319 299
 				WRAPPER_EXTENSION = app;

+ 9
- 10
BaconBarHelper/AppDelegate.m 查看文件

@@ -10,13 +10,12 @@
10 10
 
11 11
 @implementation AppDelegate
12 12
 
13
-- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
14
-{
15
-    // Check if main app is already running; if yes, do nothing and terminate helper app
13
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
14
+    NSString *appName = [[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] stringByReplacingOccurrencesOfString:@"Helper" withString:@""];
16 15
     BOOL alreadyRunning = NO;
17 16
     NSArray *running = [[NSWorkspace sharedWorkspace] runningApplications];
18 17
     for (NSRunningApplication *app in running) {
19
-        if ([[app bundleIdentifier] isEqualToString:@"xythobuz.BaconBar"]) {
18
+        if ([[app bundleIdentifier] isEqualToString:appName]) {
20 19
             alreadyRunning = YES;
21 20
         }
22 21
     }
@@ -24,15 +23,15 @@
24 23
     if (!alreadyRunning) {
25 24
         NSString *path = [[NSBundle mainBundle] bundlePath];
26 25
         NSArray *p = [path pathComponents];
27
-        NSMutableArray *pathComponents = [NSMutableArray arrayWithArray:p];
28
-        [pathComponents removeLastObject];
29
-        [pathComponents removeLastObject];
30
-        [pathComponents removeLastObject];
31
-        [pathComponents addObject:@"MacOS"];
32
-        [pathComponents addObject:@"BaconBar"];
26
+        NSMutableArray *pathComponents = [NSMutableArray arrayWithArray:p]; // /Applications/BaconBar.app/Contents/Library/LoginItems/BaconBarHelper.app
27
+        [pathComponents removeLastObject]; // /Applications/BaconBar.app/Contents/Library/LoginItems
28
+        [pathComponents removeLastObject]; // /Applications/BaconBar.app/Contents/Library
29
+        [pathComponents removeLastObject]; // /Applications/BaconBar.app/Contents
30
+        [pathComponents removeLastObject]; // /Applications/BaconBar.app
33 31
         NSString *newPath = [NSString pathWithComponents:pathComponents];
34 32
         [[NSWorkspace sharedWorkspace] launchApplication:newPath];
35 33
     }
34
+    
36 35
     [NSApp terminate:nil];
37 36
 }
38 37
 

+ 1
- 1
BaconBarHelper/BaconBarHelper-Info.plist 查看文件

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>1</string>
24
+	<string>29</string>
25 25
 	<key>LSBackgroundOnly</key>
26 26
 	<true/>
27 27
 	<key>LSMinimumSystemVersion</key>

+ 0
- 381
BaconBarHelper/Base.lproj/MainMenu.strings 查看文件

@@ -1,381 +0,0 @@
1
-
2
-/* Class = "NSMenuItem"; title = "Bring All to Front"; ObjectID = "5"; */
3
-"5.title" = "Bring All to Front";
4
-
5
-/* Class = "NSMenuItem"; title = "Window"; ObjectID = "19"; */
6
-"19.title" = "Window";
7
-
8
-/* Class = "NSMenuItem"; title = "Minimize"; ObjectID = "23"; */
9
-"23.title" = "Minimize";
10
-
11
-/* Class = "NSMenu"; title = "Window"; ObjectID = "24"; */
12
-"24.title" = "Window";
13
-
14
-/* Class = "NSMenu"; title = "AMainMenu"; ObjectID = "29"; */
15
-"29.title" = "AMainMenu";
16
-
17
-/* Class = "NSMenuItem"; title = "BaconBarHelper"; ObjectID = "56"; */
18
-"56.title" = "BaconBarHelper";
19
-
20
-/* Class = "NSMenu"; title = "BaconBarHelper"; ObjectID = "57"; */
21
-"57.title" = "BaconBarHelper";
22
-
23
-/* Class = "NSMenuItem"; title = "About BaconBarHelper"; ObjectID = "58"; */
24
-"58.title" = "About BaconBarHelper";
25
-
26
-/* Class = "NSMenuItem"; title = "Open…"; ObjectID = "72"; */
27
-"72.title" = "Open…";
28
-
29
-/* Class = "NSMenuItem"; title = "Close"; ObjectID = "73"; */
30
-"73.title" = "Close";
31
-
32
-/* Class = "NSMenuItem"; title = "Save…"; ObjectID = "75"; */
33
-"75.title" = "Save…";
34
-
35
-/* Class = "NSMenuItem"; title = "Page Setup..."; ObjectID = "77"; */
36
-"77.title" = "Page Setup...";
37
-
38
-/* Class = "NSMenuItem"; title = "Print…"; ObjectID = "78"; */
39
-"78.title" = "Print…";
40
-
41
-/* Class = "NSMenu"; title = "File"; ObjectID = "81"; */
42
-"81.title" = "File";
43
-
44
-/* Class = "NSMenuItem"; title = "New"; ObjectID = "82"; */
45
-"82.title" = "New";
46
-
47
-/* Class = "NSMenuItem"; title = "File"; ObjectID = "83"; */
48
-"83.title" = "File";
49
-
50
-/* Class = "NSMenuItem"; title = "Revert to Saved"; ObjectID = "112"; */
51
-"112.title" = "Revert to Saved";
52
-
53
-/* Class = "NSMenuItem"; title = "Open Recent"; ObjectID = "124"; */
54
-"124.title" = "Open Recent";
55
-
56
-/* Class = "NSMenu"; title = "Open Recent"; ObjectID = "125"; */
57
-"125.title" = "Open Recent";
58
-
59
-/* Class = "NSMenuItem"; title = "Clear Menu"; ObjectID = "126"; */
60
-"126.title" = "Clear Menu";
61
-
62
-/* Class = "NSMenuItem"; title = "Preferences…"; ObjectID = "129"; */
63
-"129.title" = "Preferences…";
64
-
65
-/* Class = "NSMenu"; title = "Services"; ObjectID = "130"; */
66
-"130.title" = "Services";
67
-
68
-/* Class = "NSMenuItem"; title = "Services"; ObjectID = "131"; */
69
-"131.title" = "Services";
70
-
71
-/* Class = "NSMenuItem"; title = "Hide BaconBarHelper"; ObjectID = "134"; */
72
-"134.title" = "Hide BaconBarHelper";
73
-
74
-/* Class = "NSMenuItem"; title = "Quit BaconBarHelper"; ObjectID = "136"; */
75
-"136.title" = "Quit BaconBarHelper";
76
-
77
-/* Class = "NSMenuItem"; title = "Hide Others"; ObjectID = "145"; */
78
-"145.title" = "Hide Others";
79
-
80
-/* Class = "NSMenuItem"; title = "Show All"; ObjectID = "150"; */
81
-"150.title" = "Show All";
82
-
83
-/* Class = "NSMenuItem"; title = "Stop Speaking"; ObjectID = "195"; */
84
-"195.title" = "Stop Speaking";
85
-
86
-/* Class = "NSMenuItem"; title = "Start Speaking"; ObjectID = "196"; */
87
-"196.title" = "Start Speaking";
88
-
89
-/* Class = "NSMenuItem"; title = "Copy"; ObjectID = "197"; */
90
-"197.title" = "Copy";
91
-
92
-/* Class = "NSMenuItem"; title = "Select All"; ObjectID = "198"; */
93
-"198.title" = "Select All";
94
-
95
-/* Class = "NSMenuItem"; title = "Cut"; ObjectID = "199"; */
96
-"199.title" = "Cut";
97
-
98
-/* Class = "NSMenu"; title = "Spelling and Grammar"; ObjectID = "200"; */
99
-"200.title" = "Spelling and Grammar";
100
-
101
-/* Class = "NSMenuItem"; title = "Check Document Now"; ObjectID = "201"; */
102
-"201.title" = "Check Document Now";
103
-
104
-/* Class = "NSMenuItem"; title = "Delete"; ObjectID = "202"; */
105
-"202.title" = "Delete";
106
-
107
-/* Class = "NSMenuItem"; title = "Paste"; ObjectID = "203"; */
108
-"203.title" = "Paste";
109
-
110
-/* Class = "NSMenuItem"; title = "Show Spelling and Grammar"; ObjectID = "204"; */
111
-"204.title" = "Show Spelling and Grammar";
112
-
113
-/* Class = "NSMenu"; title = "Edit"; ObjectID = "205"; */
114
-"205.title" = "Edit";
115
-
116
-/* Class = "NSMenuItem"; title = "Undo"; ObjectID = "207"; */
117
-"207.title" = "Undo";
118
-
119
-/* Class = "NSMenuItem"; title = "Find Next"; ObjectID = "208"; */
120
-"208.title" = "Find Next";
121
-
122
-/* Class = "NSMenuItem"; title = "Find…"; ObjectID = "209"; */
123
-"209.title" = "Find…";
124
-
125
-/* Class = "NSMenuItem"; title = "Jump to Selection"; ObjectID = "210"; */
126
-"210.title" = "Jump to Selection";
127
-
128
-/* Class = "NSMenuItem"; title = "Speech"; ObjectID = "211"; */
129
-"211.title" = "Speech";
130
-
131
-/* Class = "NSMenu"; title = "Speech"; ObjectID = "212"; */
132
-"212.title" = "Speech";
133
-
134
-/* Class = "NSMenuItem"; title = "Find Previous"; ObjectID = "213"; */
135
-"213.title" = "Find Previous";
136
-
137
-/* Class = "NSMenuItem"; title = "Redo"; ObjectID = "215"; */
138
-"215.title" = "Redo";
139
-
140
-/* Class = "NSMenuItem"; title = "Spelling and Grammar"; ObjectID = "216"; */
141
-"216.title" = "Spelling and Grammar";
142
-
143
-/* Class = "NSMenuItem"; title = "Edit"; ObjectID = "217"; */
144
-"217.title" = "Edit";
145
-
146
-/* Class = "NSMenuItem"; title = "Find"; ObjectID = "218"; */
147
-"218.title" = "Find";
148
-
149
-/* Class = "NSMenuItem"; title = "Check Spelling While Typing"; ObjectID = "219"; */
150
-"219.title" = "Check Spelling While Typing";
151
-
152
-/* Class = "NSMenu"; title = "Find"; ObjectID = "220"; */
153
-"220.title" = "Find";
154
-
155
-/* Class = "NSMenuItem"; title = "Use Selection for Find"; ObjectID = "221"; */
156
-"221.title" = "Use Selection for Find";
157
-
158
-/* Class = "NSMenuItem"; title = "Zoom"; ObjectID = "239"; */
159
-"239.title" = "Zoom";
160
-
161
-/* Class = "NSMenuItem"; title = "View"; ObjectID = "295"; */
162
-"295.title" = "View";
163
-
164
-/* Class = "NSMenu"; title = "View"; ObjectID = "296"; */
165
-"296.title" = "View";
166
-
167
-/* Class = "NSMenuItem"; title = "Show Toolbar"; ObjectID = "297"; */
168
-"297.title" = "Show Toolbar";
169
-
170
-/* Class = "NSMenuItem"; title = "Customize Toolbar…"; ObjectID = "298"; */
171
-"298.title" = "Customize Toolbar…";
172
-
173
-/* Class = "NSMenuItem"; title = "Check Grammar With Spelling"; ObjectID = "346"; */
174
-"346.title" = "Check Grammar With Spelling";
175
-
176
-/* Class = "NSMenuItem"; title = "Substitutions"; ObjectID = "348"; */
177
-"348.title" = "Substitutions";
178
-
179
-/* Class = "NSMenu"; title = "Substitutions"; ObjectID = "349"; */
180
-"349.title" = "Substitutions";
181
-
182
-/* Class = "NSMenuItem"; title = "Smart Copy/Paste"; ObjectID = "350"; */
183
-"350.title" = "Smart Copy/Paste";
184
-
185
-/* Class = "NSMenuItem"; title = "Smart Quotes"; ObjectID = "351"; */
186
-"351.title" = "Smart Quotes";
187
-
188
-/* Class = "NSMenuItem"; title = "Smart Links"; ObjectID = "354"; */
189
-"354.title" = "Smart Links";
190
-
191
-/* Class = "NSMenuItem"; title = "Format"; ObjectID = "375"; */
192
-"375.title" = "Format";
193
-
194
-/* Class = "NSMenu"; title = "Format"; ObjectID = "376"; */
195
-"376.title" = "Format";
196
-
197
-/* Class = "NSMenuItem"; title = "Font"; ObjectID = "377"; */
198
-"377.title" = "Font";
199
-
200
-/* Class = "NSMenu"; title = "Font"; ObjectID = "388"; */
201
-"388.title" = "Font";
202
-
203
-/* Class = "NSMenuItem"; title = "Show Fonts"; ObjectID = "389"; */
204
-"389.title" = "Show Fonts";
205
-
206
-/* Class = "NSMenuItem"; title = "Bold"; ObjectID = "390"; */
207
-"390.title" = "Bold";
208
-
209
-/* Class = "NSMenuItem"; title = "Italic"; ObjectID = "391"; */
210
-"391.title" = "Italic";
211
-
212
-/* Class = "NSMenuItem"; title = "Underline"; ObjectID = "392"; */
213
-"392.title" = "Underline";
214
-
215
-/* Class = "NSMenuItem"; title = "Bigger"; ObjectID = "394"; */
216
-"394.title" = "Bigger";
217
-
218
-/* Class = "NSMenuItem"; title = "Smaller"; ObjectID = "395"; */
219
-"395.title" = "Smaller";
220
-
221
-/* Class = "NSMenuItem"; title = "Kern"; ObjectID = "397"; */
222
-"397.title" = "Kern";
223
-
224
-/* Class = "NSMenuItem"; title = "Ligatures"; ObjectID = "398"; */
225
-"398.title" = "Ligatures";
226
-
227
-/* Class = "NSMenuItem"; title = "Baseline"; ObjectID = "399"; */
228
-"399.title" = "Baseline";
229
-
230
-/* Class = "NSMenuItem"; title = "Show Colors"; ObjectID = "401"; */
231
-"401.title" = "Show Colors";
232
-
233
-/* Class = "NSMenuItem"; title = "Copy Style"; ObjectID = "403"; */
234
-"403.title" = "Copy Style";
235
-
236
-/* Class = "NSMenuItem"; title = "Paste Style"; ObjectID = "404"; */
237
-"404.title" = "Paste Style";
238
-
239
-/* Class = "NSMenu"; title = "Baseline"; ObjectID = "405"; */
240
-"405.title" = "Baseline";
241
-
242
-/* Class = "NSMenuItem"; title = "Use Default"; ObjectID = "406"; */
243
-"406.title" = "Use Default";
244
-
245
-/* Class = "NSMenuItem"; title = "Superscript"; ObjectID = "407"; */
246
-"407.title" = "Superscript";
247
-
248
-/* Class = "NSMenuItem"; title = "Subscript"; ObjectID = "408"; */
249
-"408.title" = "Subscript";
250
-
251
-/* Class = "NSMenuItem"; title = "Raise"; ObjectID = "409"; */
252
-"409.title" = "Raise";
253
-
254
-/* Class = "NSMenuItem"; title = "Lower"; ObjectID = "410"; */
255
-"410.title" = "Lower";
256
-
257
-/* Class = "NSMenu"; title = "Ligatures"; ObjectID = "411"; */
258
-"411.title" = "Ligatures";
259
-
260
-/* Class = "NSMenuItem"; title = "Use Default"; ObjectID = "412"; */
261
-"412.title" = "Use Default";
262
-
263
-/* Class = "NSMenuItem"; title = "Use None"; ObjectID = "413"; */
264
-"413.title" = "Use None";
265
-
266
-/* Class = "NSMenuItem"; title = "Use All"; ObjectID = "414"; */
267
-"414.title" = "Use All";
268
-
269
-/* Class = "NSMenu"; title = "Kern"; ObjectID = "415"; */
270
-"415.title" = "Kern";
271
-
272
-/* Class = "NSMenuItem"; title = "Use Default"; ObjectID = "416"; */
273
-"416.title" = "Use Default";
274
-
275
-/* Class = "NSMenuItem"; title = "Use None"; ObjectID = "417"; */
276
-"417.title" = "Use None";
277
-
278
-/* Class = "NSMenuItem"; title = "Tighten"; ObjectID = "418"; */
279
-"418.title" = "Tighten";
280
-
281
-/* Class = "NSMenuItem"; title = "Loosen"; ObjectID = "419"; */
282
-"419.title" = "Loosen";
283
-
284
-/* Class = "NSMenuItem"; title = "Transformations"; ObjectID = "450"; */
285
-"450.title" = "Transformations";
286
-
287
-/* Class = "NSMenu"; title = "Transformations"; ObjectID = "451"; */
288
-"451.title" = "Transformations";
289
-
290
-/* Class = "NSMenuItem"; title = "Make Upper Case"; ObjectID = "452"; */
291
-"452.title" = "Make Upper Case";
292
-
293
-/* Class = "NSMenuItem"; title = "Correct Spelling Automatically"; ObjectID = "454"; */
294
-"454.title" = "Correct Spelling Automatically";
295
-
296
-/* Class = "NSMenuItem"; title = "Show Substitutions"; ObjectID = "457"; */
297
-"457.title" = "Show Substitutions";
298
-
299
-/* Class = "NSMenuItem"; title = "Smart Dashes"; ObjectID = "460"; */
300
-"460.title" = "Smart Dashes";
301
-
302
-/* Class = "NSMenuItem"; title = "Text Replacement"; ObjectID = "462"; */
303
-"462.title" = "Text Replacement";
304
-
305
-/* Class = "NSMenuItem"; title = "Make Lower Case"; ObjectID = "465"; */
306
-"465.title" = "Make Lower Case";
307
-
308
-/* Class = "NSMenuItem"; title = "Capitalize"; ObjectID = "466"; */
309
-"466.title" = "Capitalize";
310
-
311
-/* Class = "NSMenuItem"; title = "Paste and Match Style"; ObjectID = "485"; */
312
-"485.title" = "Paste and Match Style";
313
-
314
-/* Class = "NSMenuItem"; title = "Help"; ObjectID = "490"; */
315
-"490.title" = "Help";
316
-
317
-/* Class = "NSMenu"; title = "Help"; ObjectID = "491"; */
318
-"491.title" = "Help";
319
-
320
-/* Class = "NSMenuItem"; title = "BaconBarHelper Help"; ObjectID = "492"; */
321
-"492.title" = "BaconBarHelper Help";
322
-
323
-/* Class = "NSMenuItem"; title = "Text"; ObjectID = "496"; */
324
-"496.title" = "Text";
325
-
326
-/* Class = "NSMenu"; title = "Text"; ObjectID = "497"; */
327
-"497.title" = "Text";
328
-
329
-/* Class = "NSMenuItem"; title = "Align Left"; ObjectID = "498"; */
330
-"498.title" = "Align Left";
331
-
332
-/* Class = "NSMenuItem"; title = "Center"; ObjectID = "499"; */
333
-"499.title" = "Center";
334
-
335
-/* Class = "NSMenuItem"; title = "Justify"; ObjectID = "500"; */
336
-"500.title" = "Justify";
337
-
338
-/* Class = "NSMenuItem"; title = "Align Right"; ObjectID = "501"; */
339
-"501.title" = "Align Right";
340
-
341
-/* Class = "NSMenuItem"; title = "Writing Direction"; ObjectID = "503"; */
342
-"503.title" = "Writing Direction";
343
-
344
-/* Class = "NSMenuItem"; title = "Show Ruler"; ObjectID = "505"; */
345
-"505.title" = "Show Ruler";
346
-
347
-/* Class = "NSMenuItem"; title = "Copy Ruler"; ObjectID = "506"; */
348
-"506.title" = "Copy Ruler";
349
-
350
-/* Class = "NSMenuItem"; title = "Paste Ruler"; ObjectID = "507"; */
351
-"507.title" = "Paste Ruler";
352
-
353
-/* Class = "NSMenu"; title = "Writing Direction"; ObjectID = "508"; */
354
-"508.title" = "Writing Direction";
355
-
356
-/* Class = "NSMenuItem"; title = "Paragraph"; ObjectID = "509"; */
357
-"509.title" = "Paragraph";
358
-
359
-/* Class = "NSMenuItem"; title = "\tDefault"; ObjectID = "510"; */
360
-"510.title" = "\tDefault";
361
-
362
-/* Class = "NSMenuItem"; title = "\tLeft to Right"; ObjectID = "511"; */
363
-"511.title" = "\tLeft to Right";
364
-
365
-/* Class = "NSMenuItem"; title = "\tRight to Left"; ObjectID = "512"; */
366
-"512.title" = "\tRight to Left";
367
-
368
-/* Class = "NSMenuItem"; title = "Selection"; ObjectID = "514"; */
369
-"514.title" = "Selection";
370
-
371
-/* Class = "NSMenuItem"; title = "\tDefault"; ObjectID = "515"; */
372
-"515.title" = "\tDefault";
373
-
374
-/* Class = "NSMenuItem"; title = "\tLeft to Right"; ObjectID = "516"; */
375
-"516.title" = "\tLeft to Right";
376
-
377
-/* Class = "NSMenuItem"; title = "\tRight to Left"; ObjectID = "517"; */
378
-"517.title" = "\tRight to Left";
379
-
380
-/* Class = "NSMenuItem"; title = "Find and Replace…"; ObjectID = "534"; */
381
-"534.title" = "Find and Replace…";

+ 0
- 18
BaconBarHelper/Base.lproj/MainMenu.xib 查看文件

@@ -1,18 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
3
-    <dependencies>
4
-        <deployment defaultVersion="1080" identifier="macosx"/>
5
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
6
-    </dependencies>
7
-    <objects>
8
-        <customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
9
-            <connections>
10
-                <outlet property="delegate" destination="494" id="495"/>
11
-            </connections>
12
-        </customObject>
13
-        <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
14
-        <customObject id="-3" userLabel="Application"/>
15
-        <customObject id="494" customClass="AppDelegate"/>
16
-        <customObject id="420" customClass="NSFontManager"/>
17
-    </objects>
18
-</document>

+ 0
- 29
BaconBarHelper/en.lproj/Credits.rtf 查看文件

@@ -1,29 +0,0 @@
1
-{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
2
-{\colortbl;\red255\green255\blue255;}
3
-\paperw9840\paperh8400
4
-\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
5
-
6
-\f0\b\fs24 \cf0 Engineering:
7
-\b0 \
8
-	Some people\
9
-\
10
-
11
-\b Human Interface Design:
12
-\b0 \
13
-	Some other people\
14
-\
15
-
16
-\b Testing:
17
-\b0 \
18
-	Hopefully not nobody\
19
-\
20
-
21
-\b Documentation:
22
-\b0 \
23
-	Whoever\
24
-\
25
-
26
-\b With special thanks to:
27
-\b0 \
28
-	Mom\
29
-}

+ 0
- 2
BaconBarHelper/en.lproj/InfoPlist.strings 查看文件

@@ -1,2 +0,0 @@
1
-/* Localized versions of Info.plist keys */
2
-

+ 0
- 381
BaconBarHelper/en.lproj/MainMenu.strings 查看文件

@@ -1,381 +0,0 @@
1
-
2
-/* Class = "NSMenuItem"; title = "Bring All to Front"; ObjectID = "5"; */
3
-"5.title" = "Bring All to Front";
4
-
5
-/* Class = "NSMenuItem"; title = "Window"; ObjectID = "19"; */
6
-"19.title" = "Window";
7
-
8
-/* Class = "NSMenuItem"; title = "Minimize"; ObjectID = "23"; */
9
-"23.title" = "Minimize";
10
-
11
-/* Class = "NSMenu"; title = "Window"; ObjectID = "24"; */
12
-"24.title" = "Window";
13
-
14
-/* Class = "NSMenu"; title = "AMainMenu"; ObjectID = "29"; */
15
-"29.title" = "AMainMenu";
16
-
17
-/* Class = "NSMenuItem"; title = "BaconBarHelper"; ObjectID = "56"; */
18
-"56.title" = "BaconBarHelper";
19
-
20
-/* Class = "NSMenu"; title = "BaconBarHelper"; ObjectID = "57"; */
21
-"57.title" = "BaconBarHelper";
22
-
23
-/* Class = "NSMenuItem"; title = "About BaconBarHelper"; ObjectID = "58"; */
24
-"58.title" = "About BaconBarHelper";
25
-
26
-/* Class = "NSMenuItem"; title = "Open…"; ObjectID = "72"; */
27
-"72.title" = "Open…";
28
-
29
-/* Class = "NSMenuItem"; title = "Close"; ObjectID = "73"; */
30
-"73.title" = "Close";
31
-
32
-/* Class = "NSMenuItem"; title = "Save…"; ObjectID = "75"; */
33
-"75.title" = "Save…";
34
-
35
-/* Class = "NSMenuItem"; title = "Page Setup..."; ObjectID = "77"; */
36
-"77.title" = "Page Setup...";
37
-
38
-/* Class = "NSMenuItem"; title = "Print…"; ObjectID = "78"; */
39
-"78.title" = "Print…";
40
-
41
-/* Class = "NSMenu"; title = "File"; ObjectID = "81"; */
42
-"81.title" = "File";
43
-
44
-/* Class = "NSMenuItem"; title = "New"; ObjectID = "82"; */
45
-"82.title" = "New";
46
-
47
-/* Class = "NSMenuItem"; title = "File"; ObjectID = "83"; */
48
-"83.title" = "File";
49
-
50
-/* Class = "NSMenuItem"; title = "Revert to Saved"; ObjectID = "112"; */
51
-"112.title" = "Revert to Saved";
52
-
53
-/* Class = "NSMenuItem"; title = "Open Recent"; ObjectID = "124"; */
54
-"124.title" = "Open Recent";
55
-
56
-/* Class = "NSMenu"; title = "Open Recent"; ObjectID = "125"; */
57
-"125.title" = "Open Recent";
58
-
59
-/* Class = "NSMenuItem"; title = "Clear Menu"; ObjectID = "126"; */
60
-"126.title" = "Clear Menu";
61
-
62
-/* Class = "NSMenuItem"; title = "Preferences…"; ObjectID = "129"; */
63
-"129.title" = "Preferences…";
64
-
65
-/* Class = "NSMenu"; title = "Services"; ObjectID = "130"; */
66
-"130.title" = "Services";
67
-
68
-/* Class = "NSMenuItem"; title = "Services"; ObjectID = "131"; */
69
-"131.title" = "Services";
70
-
71
-/* Class = "NSMenuItem"; title = "Hide BaconBarHelper"; ObjectID = "134"; */
72
-"134.title" = "Hide BaconBarHelper";
73
-
74
-/* Class = "NSMenuItem"; title = "Quit BaconBarHelper"; ObjectID = "136"; */
75
-"136.title" = "Quit BaconBarHelper";
76
-
77
-/* Class = "NSMenuItem"; title = "Hide Others"; ObjectID = "145"; */
78
-"145.title" = "Hide Others";
79
-
80
-/* Class = "NSMenuItem"; title = "Show All"; ObjectID = "150"; */
81
-"150.title" = "Show All";
82
-
83
-/* Class = "NSMenuItem"; title = "Stop Speaking"; ObjectID = "195"; */
84
-"195.title" = "Stop Speaking";
85
-
86
-/* Class = "NSMenuItem"; title = "Start Speaking"; ObjectID = "196"; */
87
-"196.title" = "Start Speaking";
88
-
89
-/* Class = "NSMenuItem"; title = "Copy"; ObjectID = "197"; */
90
-"197.title" = "Copy";
91
-
92
-/* Class = "NSMenuItem"; title = "Select All"; ObjectID = "198"; */
93
-"198.title" = "Select All";
94
-
95
-/* Class = "NSMenuItem"; title = "Cut"; ObjectID = "199"; */
96
-"199.title" = "Cut";
97
-
98
-/* Class = "NSMenu"; title = "Spelling and Grammar"; ObjectID = "200"; */
99
-"200.title" = "Spelling and Grammar";
100
-
101
-/* Class = "NSMenuItem"; title = "Check Document Now"; ObjectID = "201"; */
102
-"201.title" = "Check Document Now";
103
-
104
-/* Class = "NSMenuItem"; title = "Delete"; ObjectID = "202"; */
105
-"202.title" = "Delete";
106
-
107
-/* Class = "NSMenuItem"; title = "Paste"; ObjectID = "203"; */
108
-"203.title" = "Paste";
109
-
110
-/* Class = "NSMenuItem"; title = "Show Spelling and Grammar"; ObjectID = "204"; */
111
-"204.title" = "Show Spelling and Grammar";
112
-
113
-/* Class = "NSMenu"; title = "Edit"; ObjectID = "205"; */
114
-"205.title" = "Edit";
115
-
116
-/* Class = "NSMenuItem"; title = "Undo"; ObjectID = "207"; */
117
-"207.title" = "Undo";
118
-
119
-/* Class = "NSMenuItem"; title = "Find Next"; ObjectID = "208"; */
120
-"208.title" = "Find Next";
121
-
122
-/* Class = "NSMenuItem"; title = "Find…"; ObjectID = "209"; */
123
-"209.title" = "Find…";
124
-
125
-/* Class = "NSMenuItem"; title = "Jump to Selection"; ObjectID = "210"; */
126
-"210.title" = "Jump to Selection";
127
-
128
-/* Class = "NSMenuItem"; title = "Speech"; ObjectID = "211"; */
129
-"211.title" = "Speech";
130
-
131
-/* Class = "NSMenu"; title = "Speech"; ObjectID = "212"; */
132
-"212.title" = "Speech";
133
-
134
-/* Class = "NSMenuItem"; title = "Find Previous"; ObjectID = "213"; */
135
-"213.title" = "Find Previous";
136
-
137
-/* Class = "NSMenuItem"; title = "Redo"; ObjectID = "215"; */
138
-"215.title" = "Redo";
139
-
140
-/* Class = "NSMenuItem"; title = "Spelling and Grammar"; ObjectID = "216"; */
141
-"216.title" = "Spelling and Grammar";
142
-
143
-/* Class = "NSMenuItem"; title = "Edit"; ObjectID = "217"; */
144
-"217.title" = "Edit";
145
-
146
-/* Class = "NSMenuItem"; title = "Find"; ObjectID = "218"; */
147
-"218.title" = "Find";
148
-
149
-/* Class = "NSMenuItem"; title = "Check Spelling While Typing"; ObjectID = "219"; */
150
-"219.title" = "Check Spelling While Typing";
151
-
152
-/* Class = "NSMenu"; title = "Find"; ObjectID = "220"; */
153
-"220.title" = "Find";
154
-
155
-/* Class = "NSMenuItem"; title = "Use Selection for Find"; ObjectID = "221"; */
156
-"221.title" = "Use Selection for Find";
157
-
158
-/* Class = "NSMenuItem"; title = "Zoom"; ObjectID = "239"; */
159
-"239.title" = "Zoom";
160
-
161
-/* Class = "NSMenuItem"; title = "View"; ObjectID = "295"; */
162
-"295.title" = "View";
163
-
164
-/* Class = "NSMenu"; title = "View"; ObjectID = "296"; */
165
-"296.title" = "View";
166
-
167
-/* Class = "NSMenuItem"; title = "Show Toolbar"; ObjectID = "297"; */
168
-"297.title" = "Show Toolbar";
169
-
170
-/* Class = "NSMenuItem"; title = "Customize Toolbar…"; ObjectID = "298"; */
171
-"298.title" = "Customize Toolbar…";
172
-
173
-/* Class = "NSMenuItem"; title = "Check Grammar With Spelling"; ObjectID = "346"; */
174
-"346.title" = "Check Grammar With Spelling";
175
-
176
-/* Class = "NSMenuItem"; title = "Substitutions"; ObjectID = "348"; */
177
-"348.title" = "Substitutions";
178
-
179
-/* Class = "NSMenu"; title = "Substitutions"; ObjectID = "349"; */
180
-"349.title" = "Substitutions";
181
-
182
-/* Class = "NSMenuItem"; title = "Smart Copy/Paste"; ObjectID = "350"; */
183
-"350.title" = "Smart Copy/Paste";
184
-
185
-/* Class = "NSMenuItem"; title = "Smart Quotes"; ObjectID = "351"; */
186
-"351.title" = "Smart Quotes";
187
-
188
-/* Class = "NSMenuItem"; title = "Smart Links"; ObjectID = "354"; */
189
-"354.title" = "Smart Links";
190
-
191
-/* Class = "NSMenuItem"; title = "Format"; ObjectID = "375"; */
192
-"375.title" = "Format";
193
-
194
-/* Class = "NSMenu"; title = "Format"; ObjectID = "376"; */
195
-"376.title" = "Format";
196
-
197
-/* Class = "NSMenuItem"; title = "Font"; ObjectID = "377"; */
198
-"377.title" = "Font";
199
-
200
-/* Class = "NSMenu"; title = "Font"; ObjectID = "388"; */
201
-"388.title" = "Font";
202
-
203
-/* Class = "NSMenuItem"; title = "Show Fonts"; ObjectID = "389"; */
204
-"389.title" = "Show Fonts";
205
-
206
-/* Class = "NSMenuItem"; title = "Bold"; ObjectID = "390"; */
207
-"390.title" = "Bold";
208
-
209
-/* Class = "NSMenuItem"; title = "Italic"; ObjectID = "391"; */
210
-"391.title" = "Italic";
211
-
212
-/* Class = "NSMenuItem"; title = "Underline"; ObjectID = "392"; */
213
-"392.title" = "Underline";
214
-
215
-/* Class = "NSMenuItem"; title = "Bigger"; ObjectID = "394"; */
216
-"394.title" = "Bigger";
217
-
218
-/* Class = "NSMenuItem"; title = "Smaller"; ObjectID = "395"; */
219
-"395.title" = "Smaller";
220
-
221
-/* Class = "NSMenuItem"; title = "Kern"; ObjectID = "397"; */
222
-"397.title" = "Kern";
223
-
224
-/* Class = "NSMenuItem"; title = "Ligatures"; ObjectID = "398"; */
225
-"398.title" = "Ligatures";
226
-
227
-/* Class = "NSMenuItem"; title = "Baseline"; ObjectID = "399"; */
228
-"399.title" = "Baseline";
229
-
230
-/* Class = "NSMenuItem"; title = "Show Colors"; ObjectID = "401"; */
231
-"401.title" = "Show Colors";
232
-
233
-/* Class = "NSMenuItem"; title = "Copy Style"; ObjectID = "403"; */
234
-"403.title" = "Copy Style";
235
-
236
-/* Class = "NSMenuItem"; title = "Paste Style"; ObjectID = "404"; */
237
-"404.title" = "Paste Style";
238
-
239
-/* Class = "NSMenu"; title = "Baseline"; ObjectID = "405"; */
240
-"405.title" = "Baseline";
241
-
242
-/* Class = "NSMenuItem"; title = "Use Default"; ObjectID = "406"; */
243
-"406.title" = "Use Default";
244
-
245
-/* Class = "NSMenuItem"; title = "Superscript"; ObjectID = "407"; */
246
-"407.title" = "Superscript";
247
-
248
-/* Class = "NSMenuItem"; title = "Subscript"; ObjectID = "408"; */
249
-"408.title" = "Subscript";
250
-
251
-/* Class = "NSMenuItem"; title = "Raise"; ObjectID = "409"; */
252
-"409.title" = "Raise";
253
-
254
-/* Class = "NSMenuItem"; title = "Lower"; ObjectID = "410"; */
255
-"410.title" = "Lower";
256
-
257
-/* Class = "NSMenu"; title = "Ligatures"; ObjectID = "411"; */
258
-"411.title" = "Ligatures";
259
-
260
-/* Class = "NSMenuItem"; title = "Use Default"; ObjectID = "412"; */
261
-"412.title" = "Use Default";
262
-
263
-/* Class = "NSMenuItem"; title = "Use None"; ObjectID = "413"; */
264
-"413.title" = "Use None";
265
-
266
-/* Class = "NSMenuItem"; title = "Use All"; ObjectID = "414"; */
267
-"414.title" = "Use All";
268
-
269
-/* Class = "NSMenu"; title = "Kern"; ObjectID = "415"; */
270
-"415.title" = "Kern";
271
-
272
-/* Class = "NSMenuItem"; title = "Use Default"; ObjectID = "416"; */
273
-"416.title" = "Use Default";
274
-
275
-/* Class = "NSMenuItem"; title = "Use None"; ObjectID = "417"; */
276
-"417.title" = "Use None";
277
-
278
-/* Class = "NSMenuItem"; title = "Tighten"; ObjectID = "418"; */
279
-"418.title" = "Tighten";
280
-
281
-/* Class = "NSMenuItem"; title = "Loosen"; ObjectID = "419"; */
282
-"419.title" = "Loosen";
283
-
284
-/* Class = "NSMenuItem"; title = "Transformations"; ObjectID = "450"; */
285
-"450.title" = "Transformations";
286
-
287
-/* Class = "NSMenu"; title = "Transformations"; ObjectID = "451"; */
288
-"451.title" = "Transformations";
289
-
290
-/* Class = "NSMenuItem"; title = "Make Upper Case"; ObjectID = "452"; */
291
-"452.title" = "Make Upper Case";
292
-
293
-/* Class = "NSMenuItem"; title = "Correct Spelling Automatically"; ObjectID = "454"; */
294
-"454.title" = "Correct Spelling Automatically";
295
-
296
-/* Class = "NSMenuItem"; title = "Show Substitutions"; ObjectID = "457"; */
297
-"457.title" = "Show Substitutions";
298
-
299
-/* Class = "NSMenuItem"; title = "Smart Dashes"; ObjectID = "460"; */
300
-"460.title" = "Smart Dashes";
301
-
302
-/* Class = "NSMenuItem"; title = "Text Replacement"; ObjectID = "462"; */
303
-"462.title" = "Text Replacement";
304
-
305
-/* Class = "NSMenuItem"; title = "Make Lower Case"; ObjectID = "465"; */
306
-"465.title" = "Make Lower Case";
307
-
308
-/* Class = "NSMenuItem"; title = "Capitalize"; ObjectID = "466"; */
309
-"466.title" = "Capitalize";
310
-
311
-/* Class = "NSMenuItem"; title = "Paste and Match Style"; ObjectID = "485"; */
312
-"485.title" = "Paste and Match Style";
313
-
314
-/* Class = "NSMenuItem"; title = "Help"; ObjectID = "490"; */
315
-"490.title" = "Help";
316
-
317
-/* Class = "NSMenu"; title = "Help"; ObjectID = "491"; */
318
-"491.title" = "Help";
319
-
320
-/* Class = "NSMenuItem"; title = "BaconBarHelper Help"; ObjectID = "492"; */
321
-"492.title" = "BaconBarHelper Help";
322
-
323
-/* Class = "NSMenuItem"; title = "Text"; ObjectID = "496"; */
324
-"496.title" = "Text";
325
-
326
-/* Class = "NSMenu"; title = "Text"; ObjectID = "497"; */
327
-"497.title" = "Text";
328
-
329
-/* Class = "NSMenuItem"; title = "Align Left"; ObjectID = "498"; */
330
-"498.title" = "Align Left";
331
-
332
-/* Class = "NSMenuItem"; title = "Center"; ObjectID = "499"; */
333
-"499.title" = "Center";
334
-
335
-/* Class = "NSMenuItem"; title = "Justify"; ObjectID = "500"; */
336
-"500.title" = "Justify";
337
-
338
-/* Class = "NSMenuItem"; title = "Align Right"; ObjectID = "501"; */
339
-"501.title" = "Align Right";
340
-
341
-/* Class = "NSMenuItem"; title = "Writing Direction"; ObjectID = "503"; */
342
-"503.title" = "Writing Direction";
343
-
344
-/* Class = "NSMenuItem"; title = "Show Ruler"; ObjectID = "505"; */
345
-"505.title" = "Show Ruler";
346
-
347
-/* Class = "NSMenuItem"; title = "Copy Ruler"; ObjectID = "506"; */
348
-"506.title" = "Copy Ruler";
349
-
350
-/* Class = "NSMenuItem"; title = "Paste Ruler"; ObjectID = "507"; */
351
-"507.title" = "Paste Ruler";
352
-
353
-/* Class = "NSMenu"; title = "Writing Direction"; ObjectID = "508"; */
354
-"508.title" = "Writing Direction";
355
-
356
-/* Class = "NSMenuItem"; title = "Paragraph"; ObjectID = "509"; */
357
-"509.title" = "Paragraph";
358
-
359
-/* Class = "NSMenuItem"; title = "\tDefault"; ObjectID = "510"; */
360
-"510.title" = "\tDefault";
361
-
362
-/* Class = "NSMenuItem"; title = "\tLeft to Right"; ObjectID = "511"; */
363
-"511.title" = "\tLeft to Right";
364
-
365
-/* Class = "NSMenuItem"; title = "\tRight to Left"; ObjectID = "512"; */
366
-"512.title" = "\tRight to Left";
367
-
368
-/* Class = "NSMenuItem"; title = "Selection"; ObjectID = "514"; */
369
-"514.title" = "Selection";
370
-
371
-/* Class = "NSMenuItem"; title = "\tDefault"; ObjectID = "515"; */
372
-"515.title" = "\tDefault";
373
-
374
-/* Class = "NSMenuItem"; title = "\tLeft to Right"; ObjectID = "516"; */
375
-"516.title" = "\tLeft to Right";
376
-
377
-/* Class = "NSMenuItem"; title = "\tRight to Left"; ObjectID = "517"; */
378
-"517.title" = "\tRight to Left";
379
-
380
-/* Class = "NSMenuItem"; title = "Find and Replace…"; ObjectID = "534"; */
381
-"534.title" = "Find and Replace…";

+ 5
- 1
BaconBarHelper/main.m 查看文件

@@ -7,8 +7,12 @@
7 7
 //
8 8
 
9 9
 #import <Cocoa/Cocoa.h>
10
+#import "AppDelegate.h"
10 11
 
11 12
 int main(int argc, const char * argv[])
12 13
 {
13
-    return NSApplicationMain(argc, argv);
14
+    AppDelegate *delegate = [[AppDelegate alloc] init];
15
+    [[NSApplication sharedApplication] setDelegate:delegate];
16
+    [NSApp run];
17
+    return 0;
14 18
 }

+ 1
- 1
RedditBar/BaconBar-Info.plist 查看文件

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>358</string>
24
+	<string>385</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

+ 2
- 0
RedditBar/StateModel.m 查看文件

@@ -86,6 +86,8 @@ NSString *s_startLogin = @"startOnLogin";
86 86
         NSString *appName = [NSString stringWithFormat:@"%@Helper", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"]];
87 87
         if (SMLoginItemSetEnabled((__bridge CFStringRef)appName, startOnLogin)) {
88 88
             [store setBool:startOnLogin forKey:s_startLogin];
89
+        } else {
90
+            startOnLogin = !startOnLogin; // Propagate revert of users change to the UI
89 91
         }
90 92
     }
91 93
 }

+ 11
- 0
web/index.html 查看文件

@@ -64,6 +64,17 @@
64 64
             </div>
65 65
             <div class="panel panel-default">
66 66
                 <div class="panel-heading">
67
+                    <span class="panel-title heading">Version 1.5.0</span>
68
+                    <span class="pull-right text-muted heading">In production...</span>
69
+                </div>
70
+                <div class="panel-body">
71
+                    <ul>
72
+                        <li>Can open BaconBar on login</li>
73
+                    </ul>
74
+                </div>
75
+            </div>
76
+            <div class="panel panel-default">
77
+                <div class="panel-heading">
67 78
                     <span class="panel-title heading">Version 1.4.0</span>
68 79
                     <span class="pull-right text-muted heading">Will be submitted after 2013-12-28</span>
69 80
                 </div>

Loading…
取消
儲存