Permalink
Browse files

Clean up finder service code a bit

  • Loading branch information...
1 parent badd07a commit 83ecb47f67e6f27e932c47c48b20bf75e0d3073a @gnachman committed Dec 11, 2016
@@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
- 06E0C88E1DF9695400AA061B /* ServiceProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 06E0C88C1DF9695400AA061B /* ServiceProvider.h */; };
- 06E0C88F1DF9695400AA061B /* ServiceProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 06E0C88D1DF9695400AA061B /* ServiceProvider.m */; };
+ 06E0C88E1DF9695400AA061B /* iTermServiceProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = 06E0C88C1DF9695400AA061B /* iTermServiceProvider.h */; };
+ 06E0C88F1DF9695400AA061B /* iTermServiceProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 06E0C88D1DF9695400AA061B /* iTermServiceProvider.m */; };
11EF6CBD28560AAAFBFB84C1 /* Pods_iTerm2XCTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 744E24C37326A4D002E72B01 /* Pods_iTerm2XCTests.framework */; };
1D027C111CD1867000B0FBFF /* iTermColorPresets.h in Headers */ = {isa = PBXBuildFile; fileRef = 1D027C0F1CD1867000B0FBFF /* iTermColorPresets.h */; };
1D027C121CD1867100B0FBFF /* iTermColorPresets.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D027C101CD1867000B0FBFF /* iTermColorPresets.m */; };
@@ -1405,13 +1405,13 @@
A66DB83B1C9142C900233E88 /* iTermAltScreenMouseScrollInferer.m in Sources */ = {isa = PBXBuildFile; fileRef = A66DB8391C9142C900233E88 /* iTermAltScreenMouseScrollInferer.m */; };
A66DB8421CA24E8800233E88 /* iTermAutoMasterParser.h in Headers */ = {isa = PBXBuildFile; fileRef = A66DB8401CA24E8800233E88 /* iTermAutoMasterParser.h */; };
A66DB8431CA24E8900233E88 /* iTermAutoMasterParser.m in Sources */ = {isa = PBXBuildFile; fileRef = A66DB8411CA24E8800233E88 /* iTermAutoMasterParser.m */; };
+ A67778B41CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.h in Headers */ = {isa = PBXBuildFile; fileRef = A67778B21CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.h */; };
+ A67778B51CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.m in Sources */ = {isa = PBXBuildFile; fileRef = A67778B31CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.m */; };
A6755F431D728FFA00F3726C /* iTermImage.h in Headers */ = {isa = PBXBuildFile; fileRef = A6755F411D728FFA00F3726C /* iTermImage.h */; };
A6755F441D728FFA00F3726C /* iTermImage.m in Sources */ = {isa = PBXBuildFile; fileRef = A6755F421D728FFA00F3726C /* iTermImage.m */; };
A6755F4C1D729A0500F3726C /* image_decoder.m in Sources */ = {isa = PBXBuildFile; fileRef = A6755F4B1D729A0500F3726C /* image_decoder.m */; };
A6755F541D73836B00F3726C /* iTermSerializableImage.m in Sources */ = {isa = PBXBuildFile; fileRef = A6755F531D73836B00F3726C /* iTermSerializableImage.m */; };
A6755F571D739E4F00F3726C /* image_decoder in Resources */ = {isa = PBXBuildFile; fileRef = A6755F491D729A0500F3726C /* image_decoder */; };
- A67778B41CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.h in Headers */ = {isa = PBXBuildFile; fileRef = A67778B21CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.h */; };
- A67778B51CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.m in Sources */ = {isa = PBXBuildFile; fileRef = A67778B31CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.m */; };
A67778B71CFF40AC00DEED78 /* iTermNSArrayCategoryTest.m in Sources */ = {isa = PBXBuildFile; fileRef = A67778B61CFF40AC00DEED78 /* iTermNSArrayCategoryTest.m */; };
A67778CD1CFFAE8D00DEED78 /* NSApplication+iTerm.m in Sources */ = {isa = PBXBuildFile; fileRef = A667F38A1B48AEF200705186 /* NSApplication+iTerm.m */; };
A67D0D321A2EE12A003A8B35 /* AboutWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A67D0D111A2EE12A003A8B35 /* AboutWindow.xib */; };
@@ -2335,8 +2335,8 @@
/* Begin PBXFileReference section */
0464AB2F006CD2EC7F000001 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
- 06E0C88C1DF9695400AA061B /* ServiceProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ServiceProvider.h; sourceTree = "<group>"; };
- 06E0C88D1DF9695400AA061B /* ServiceProvider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ServiceProvider.m; sourceTree = "<group>"; };
+ 06E0C88C1DF9695400AA061B /* iTermServiceProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermServiceProvider.h; sourceTree = "<group>"; };
+ 06E0C88D1DF9695400AA061B /* iTermServiceProvider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTermServiceProvider.m; sourceTree = "<group>"; };
1D027C0F1CD1867000B0FBFF /* iTermColorPresets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermColorPresets.h; sourceTree = "<group>"; };
1D027C101CD1867000B0FBFF /* iTermColorPresets.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = iTermColorPresets.m; sourceTree = "<group>"; };
1D0318261A42563A00932107 /* iTermImageWell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermImageWell.h; sourceTree = "<group>"; };
@@ -3142,14 +3142,14 @@
A66DB8391C9142C900233E88 /* iTermAltScreenMouseScrollInferer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTermAltScreenMouseScrollInferer.m; sourceTree = "<group>"; };
A66DB8401CA24E8800233E88 /* iTermAutoMasterParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermAutoMasterParser.h; sourceTree = "<group>"; };
A66DB8411CA24E8800233E88 /* iTermAutoMasterParser.m */ = {isa = PBXFileReference; fileEncoding = 4; indentWidth = 4; lastKnownFileType = sourcecode.c.objc; path = iTermAutoMasterParser.m; sourceTree = "<group>"; };
+ A67778B21CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermHotKeyProfileBindingController.h; sourceTree = "<group>"; };
+ A67778B31CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTermHotKeyProfileBindingController.m; sourceTree = "<group>"; };
A6755F411D728FFA00F3726C /* iTermImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermImage.h; sourceTree = "<group>"; };
A6755F421D728FFA00F3726C /* iTermImage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTermImage.m; sourceTree = "<group>"; };
A6755F491D729A0500F3726C /* image_decoder */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = image_decoder; sourceTree = BUILT_PRODUCTS_DIR; };
A6755F4B1D729A0500F3726C /* image_decoder.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = image_decoder.m; sourceTree = "<group>"; };
A6755F521D73836B00F3726C /* iTermSerializableImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermSerializableImage.h; sourceTree = "<group>"; };
A6755F531D73836B00F3726C /* iTermSerializableImage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTermSerializableImage.m; sourceTree = "<group>"; };
- A67778B21CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTermHotKeyProfileBindingController.h; sourceTree = "<group>"; };
- A67778B31CFD4A7300DEED78 /* iTermHotKeyProfileBindingController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTermHotKeyProfileBindingController.m; sourceTree = "<group>"; };
A67778B61CFF40AC00DEED78 /* iTermNSArrayCategoryTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTermNSArrayCategoryTest.m; sourceTree = "<group>"; };
A67D0D111A2EE12A003A8B35 /* AboutWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = AboutWindow.xib; path = Interfaces/AboutWindow.xib; sourceTree = "<group>"; };
A67D0D121A2EE12A003A8B35 /* AddressBook.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = AddressBook.strings; path = Interfaces/AddressBook.strings; sourceTree = "<group>"; };
@@ -4233,8 +4233,8 @@
06E0C88B1DF9691200AA061B /* Services */ = {
isa = PBXGroup;
children = (
- 06E0C88C1DF9695400AA061B /* ServiceProvider.h */,
- 06E0C88D1DF9695400AA061B /* ServiceProvider.m */,
+ 06E0C88C1DF9695400AA061B /* iTermServiceProvider.h */,
+ 06E0C88D1DF9695400AA061B /* iTermServiceProvider.m */,
);
name = Services;
sourceTree = "<group>";
@@ -6075,7 +6075,7 @@
A69B4585196F8EA100F5444D /* iTermOpenQuicklyWindowController.h in Headers */,
A6C7DE52199F3087001E5C75 /* PTYWindow+Scripting.h in Headers */,
1D468F041B06A79000226083 /* StopTrigger.h in Headers */,
- 06E0C88E1DF9695400AA061B /* ServiceProvider.h in Headers */,
+ 06E0C88E1DF9695400AA061B /* iTermServiceProvider.h in Headers */,
A66A1FA81A3A207900F4A3A7 /* iTermWindowShortcutLabelTitlebarAccessoryViewController.h in Headers */,
1DABA03319253FEA00A228D8 /* PasswordTrigger.h in Headers */,
1DA76A1F1B308AD000CB272A /* iTermTipCardViewController.h in Headers */,
@@ -7744,7 +7744,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 06E0C88F1DF9695400AA061B /* ServiceProvider.m in Sources */,
+ 06E0C88F1DF9695400AA061B /* iTermServiceProvider.m in Sources */,
A6C763CE1B45C53A00E3C992 /* main.m in Sources */,
A6E761651D39D216005C0E5C /* iTermMutableAttributedStringBuilder.m in Sources */,
1D1F8C1C1A32616A00167161 /* AMIndeterminateProgressIndicator.m in Sources */,
View
@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>NSHumanReadableCopyright</key>
+ <string>GPL v2</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
@@ -24,12 +26,12 @@
<string>Editor</string>
</dict>
<dict>
- <key>CFBundleTypeName</key>
- <string>Folders</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>fold</string>
</array>
+ <key>CFBundleTypeName</key>
+ <string>Folders</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
@@ -175,27 +177,13 @@
</array>
</dict>
</array>
- <key>CFBundleVersion</key>
- <string>unknown</string>
- <key>LSApplicationCategoryType</key>
- <string>public.app-category.utilities</string>
- <key>NSAppleScriptEnabled</key>
- <string>YES</string>
- <key>NSExtensions</key>
- <dict/>
- <key>NSHumanReadableCopyright</key>
- <string>GPL v2</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>iTermApplication</string>
<key>NSServices</key>
<array>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
- <string>New iTerm 2 Tab Here</string>
+ <string>New iTerm2 Tab Here</string>
</dict>
<key>NSMessage</key>
<string>openTab</string>
@@ -214,7 +202,7 @@
<key>NSMenuItem</key>
<dict>
<key>default</key>
- <string>New iTerm 2 Window Here</string>
+ <string>New iTerm2 Window Here</string>
</dict>
<key>NSMessage</key>
<string>openWindow</string>
@@ -230,15 +218,27 @@
</array>
</dict>
</array>
- <key>NSSupportsAutomaticGraphicsSwitching</key>
- <true/>
+ <key>CFBundleVersion</key>
+ <string>unknown</string>
+ <key>LSApplicationCategoryType</key>
+ <string>public.app-category.utilities</string>
+ <key>NSAppleScriptEnabled</key>
+ <string>YES</string>
<key>OSAScriptingDefinition</key>
<string>iTerm2.sdef</string>
- <key>SUFeedURLForFinal</key>
- <string>https://iterm2.com/appcasts/final.xml</string>
- <key>SUFeedURLForTesting</key>
- <string>https://iterm2.com/appcasts/testing.xml</string>
+ <key>NSExtensions</key>
+ <dict/>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>iTermApplication</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
+ <key>NSSupportsAutomaticGraphicsSwitching</key>
+ <true/>
+ <key>SUFeedURLForTesting</key>
+ <string>https://iterm2.com/appcasts/testing.xml</string>
+ <key>SUFeedURLForFinal</key>
+ <string>https://iterm2.com/appcasts/final.xml</string>
</dict>
</plist>
@@ -54,6 +54,47 @@
</array>
</dict>
</array>
+ <key>NSServices</key>
+ <array>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Tab Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openTab</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Window Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openWindow</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ </array>
<key>CFBundleExecutable</key>
<string>iTerm2ForApplescriptTesting</string>
<key>CFBundleGetInfoString</key>
@@ -56,6 +56,47 @@
</array>
</dict>
</array>
+ <key>NSServices</key>
+ <array>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Tab Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openTab</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Window Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openWindow</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ </array>
<key>CFBundleExecutable</key>
<string>iTerm2</string>
<key>CFBundleGetInfoString</key>
@@ -56,6 +56,47 @@
</array>
</dict>
</array>
+ <key>NSServices</key>
+ <array>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Tab Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openTab</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Window Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openWindow</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ </array>
<key>CFBundleExecutable</key>
<string>iTerm2</string>
<key>CFBundleGetInfoString</key>
@@ -56,6 +56,47 @@
</array>
</dict>
</array>
+ <key>NSServices</key>
+ <array>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Tab Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openTab</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ <dict>
+ <key>NSMenuItem</key>
+ <dict>
+ <key>default</key>
+ <string>New iTerm2 Window Here</string>
+ </dict>
+ <key>NSMessage</key>
+ <string>openWindow</string>
+ <key>NSRequiredContext</key>
+ <dict>
+ <key>NSTextContent</key>
+ <string>FilePath</string>
+ </dict>
+ <key>NSSendTypes</key>
+ <array>
+ <string>NSFilenamesPboardType</string>
+ <string>public.plain-text</string>
+ </array>
+ </dict>
+ </array>
<key>CFBundleExecutable</key>
<string>iTerm2</string>
<key>CFBundleGetInfoString</key>
@@ -1,14 +0,0 @@
-//
-// ServiceProvider.h
-// iTerm2
-//
-// Created by liupeng on 08/12/2016.
-//
-//
-
-#import <Foundation/Foundation.h>
-#import <Cocoa/Cocoa.h>
-@interface ServiceProvider : NSObject
-- (void)openTab:(NSPasteboard*)pasteboard : (NSString*) error;
-- (void)openWindow:(NSPasteboard*)pasteboard : (NSString*) error;
-@end
Oops, something went wrong.

0 comments on commit 83ecb47

Please sign in to comment.